diff options
author | Parménides GV <parmegv@sdf.org> | 2015-01-31 01:19:49 +0100 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2015-01-31 01:19:49 +0100 |
commit | c95a21a736fadb46685e051064b0ec1efdae667a (patch) | |
tree | 90c4af22d047b7297a66a9e623c86c5af63b12f6 /app/openvpn/src/openvpn/ssl_verify.h | |
parent | 1a4643dc08a86dcd9650afa2255945df14445f2d (diff) |
Updated ics-openvpn to rev 1020.
Improved build.gradle script.
Diffstat (limited to 'app/openvpn/src/openvpn/ssl_verify.h')
-rw-r--r-- | app/openvpn/src/openvpn/ssl_verify.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/app/openvpn/src/openvpn/ssl_verify.h b/app/openvpn/src/openvpn/ssl_verify.h index 84554f89..d5bf22e5 100644 --- a/app/openvpn/src/openvpn/ssl_verify.h +++ b/app/openvpn/src/openvpn/ssl_verify.h @@ -30,7 +30,7 @@ #ifndef SSL_VERIFY_H_ #define SSL_VERIFY_H_ -#if defined(ENABLE_CRYPTO) && defined(ENABLE_SSL) +#ifdef ENABLE_CRYPTO #include "syshead.h" #include "misc.h" @@ -137,6 +137,14 @@ const char *tls_common_name (const struct tls_multi* multi, const bool null); */ const char *tls_username (const struct tls_multi *multi, const bool null); +/** + * Compares certificates hashes, returns true if hashes are equal. + * + * @param chs1 cert 1 hash set + * @param chs2 cert 2 hash set + */ +bool cert_hash_compare (const struct cert_hash_set *chs1, const struct cert_hash_set *chs2); + #ifdef ENABLE_PF /** @@ -236,6 +244,6 @@ tls_client_reason (struct tls_multi *multi) #endif } -#endif /* defined(ENABLE_CRYPTO) && defined(ENABLE_SSL) */ +#endif /* ENABLE_CRYPTO */ #endif /* SSL_VERIFY_H_ */ |