]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/ldap-int.h
ITS#8753 Move base64 decoding to separate file
[openldap] / libraries / libldap / ldap-int.h
index 928b718c8fc916ca02dee34516c9df3b328e57a6..d7d1afada17ecd1f8fef1463efe1ca8263d27fcf 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2016 The OpenLDAP Foundation.
+ * Copyright 1998-2017 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -167,6 +167,9 @@ struct ldaptls {
        char            *lt_randfile;   /* OpenSSL only */
        char            *lt_ecname;             /* OpenSSL only */
        int             lt_protocol_min;
+       struct berval   lt_cacert;
+       struct berval   lt_cert;
+       struct berval   lt_key;
 };
 #endif
 
@@ -258,6 +261,9 @@ struct ldapoptions {
 #define ldo_tls_protocol_min   ldo_tls_info.lt_protocol_min
 #define ldo_tls_crlfile        ldo_tls_info.lt_crlfile
 #define ldo_tls_randfile       ldo_tls_info.lt_randfile
+#define ldo_tls_cacert ldo_tls_info.lt_cacert
+#define ldo_tls_cert   ldo_tls_info.lt_cert
+#define ldo_tls_key    ldo_tls_info.lt_key
        int                     ldo_tls_mode;
        int                     ldo_tls_require_cert;
        int                     ldo_tls_impl;
@@ -542,6 +548,13 @@ LDAP_F (BerElement *) ldap_build_add_req LDAP_P((
        LDAPControl **cctrls,
        ber_int_t *msgidp ));
 
+/*
+ * in lbase64.c
+ */
+
+LDAP_F (int) ldap_int_decode_b64_inplace LDAP_P((
+       struct berval *value ));
+
 /*
  * in compare.c
  */