]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/ldap-int.h
Happy New Year
[openldap] / libraries / libldap / ldap-int.h
index 63cad53d061c8e06426c72db697368f8e85b6176..5ec19b32f541d81cf48e35d2b9c13b999ec822d6 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2015 The OpenLDAP Foundation.
+ * Copyright 1998-2018 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,11 +261,16 @@ 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;
        int                     ldo_tls_crlcheck;
-#define LDAP_LDO_TLS_NULLARG ,0,0,0,{0,0,0,0,0,0,0,0,0},0,0,0,0
+       char            *ldo_tls_pin_hashalg;
+       struct berval   ldo_tls_pin;
+#define LDAP_LDO_TLS_NULLARG ,0,0,0,{0,0,0,0,0,0,0,0,0},0,0,0,0,0,{0,0}
 #else
 #define LDAP_LDO_TLS_NULLARG
 #endif
@@ -542,6 +550,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
  */