summaryrefslogtreecommitdiff
path: root/lib/vtls/vtls.h
diff options
context:
space:
mode:
authormoparisthebest <admin@moparisthebest.com>2014-11-24 19:30:09 +0100
committerPatrick Monnerat <pm@datasphere.ch>2014-11-24 19:30:09 +0100
commitbe1a5051890b7ad9339b0208424b94aa32c64776 (patch)
treed98e121223d1959808a8446e9000ecacaf70a1c8 /lib/vtls/vtls.h
parent2008c92513cee98ded80ed9ffaf984edc0c97c33 (diff)
downloadcurl-be1a5051890b7ad9339b0208424b94aa32c64776.tar.gz
SSL: Add PEM format support for public key pinning
Diffstat (limited to 'lib/vtls/vtls.h')
-rw-r--r--lib/vtls/vtls.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/vtls/vtls.h b/lib/vtls/vtls.h
index f0adc76ff..d24a858f6 100644
--- a/lib/vtls/vtls.h
+++ b/lib/vtls/vtls.h
@@ -33,6 +33,10 @@
#include "curl_schannel.h" /* Schannel SSPI version */
#include "curl_darwinssl.h" /* SecureTransport (Darwin) version */
+#ifndef MAX_PINNED_PUBKEY_SIZE
+#define MAX_PINNED_PUBKEY_SIZE 1048576 /* 1MB */
+#endif
+
#ifndef MD5_DIGEST_LENGTH
#define MD5_DIGEST_LENGTH 16 /* fixed size */
#endif