]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/ldap-tls.h
ITS#8753 Public key pinning support in libldap
[openldap] / libraries / libldap / ldap-tls.h
index 890d20dc7ebfcfd59dc21b638df8d2a3e46bc0f1..0b1722cdcddb98463a9308cc1893e0269bc3569a 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2008-2013 The OpenLDAP Foundation.
+ * Copyright 2008-2017 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -44,6 +44,7 @@ typedef int (TI_session_strength)(tls_session *sess);
 typedef int (TI_session_unique)(tls_session *sess, struct berval *buf, int is_server);
 typedef const char *(TI_session_name)(tls_session *s);
 typedef int (TI_session_peercert)(tls_session *s, struct berval *der);
+typedef int (TI_session_pinning)(LDAP *ld, tls_session *s, char *hashalg, struct berval *hash);
 
 typedef void (TI_thr_init)(void);
 
@@ -71,6 +72,7 @@ typedef struct tls_impl {
        TI_session_name *ti_session_version;
        TI_session_name *ti_session_cipher;
        TI_session_peercert *ti_session_peercert;
+       TI_session_pinning *ti_session_pinning;
 
        Sockbuf_IO *ti_sbio;