X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fldap-tls.h;h=0b1722cdcddb98463a9308cc1893e0269bc3569a;hb=8e34ed8c786a1f786976da046907f7dbd5d3458d;hp=890d20dc7ebfcfd59dc21b638df8d2a3e46bc0f1;hpb=01f4aeac4c9ccc42a998c18f8995ce453d819b13;p=openldap diff --git a/libraries/libldap/ldap-tls.h b/libraries/libldap/ldap-tls.h index 890d20dc7e..0b1722cdcd 100644 --- a/libraries/libldap/ldap-tls.h +++ b/libraries/libldap/ldap-tls.h @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * 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;