]> git.sur5r.net Git - openldap/blobdiff - include/ldap.h
ITS#8753 Public key pinning support in libldap
[openldap] / include / ldap.h
index 9524e894899cd8f5dbd6b4b1d578cfc1b935d5b6..2ca1b84fd6820a93b4b5aa31fdc06df4d5962474 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  * 
- * Copyright 1998-2014 The OpenLDAP Foundation.
+ * Copyright 1998-2017 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -162,6 +162,10 @@ LDAP_BEGIN_DECL
 #define LDAP_OPT_X_TLS_VERSION         0x6013  /* read-only */
 #define LDAP_OPT_X_TLS_CIPHER          0x6014  /* read-only */
 #define LDAP_OPT_X_TLS_PEERCERT                0x6015  /* read-only */
+#define LDAP_OPT_X_TLS_CACERT          0x6016
+#define LDAP_OPT_X_TLS_CERT                    0x6017
+#define LDAP_OPT_X_TLS_KEY                     0x6018
+#define LDAP_OPT_X_TLS_PEERKEY_HASH    0x6019
 
 #define LDAP_OPT_X_TLS_NEVER   0
 #define LDAP_OPT_X_TLS_HARD            1
@@ -1545,6 +1549,9 @@ LDAP_F( LDAP * )
 ldap_dup LDAP_P((
        LDAP *old ));
 
+LDAP_F( int )
+ldap_connect( LDAP *ld );
+
 /*
  * in tls.c
  */