From e98193000a2cd1335b171b912f01196f56d13547 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Tue, 9 Apr 2013 09:45:25 -0700 Subject: [PATCH] KEEP_PEER_CERT includes the function CyaSSL_X509_get_subjectCN --- src/ssl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ssl.c b/src/ssl.c index c2a3f1894..5babd86bd 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -6673,8 +6673,10 @@ int CyaSSL_set_compression(CYASSL* ssl) *outSz = (int)x509->derCert.length; return x509->derCert.buffer; } +#endif /* OPENSSL_EXTRA */ +#ifdef KEEP_PEER_CERT char* CyaSSL_X509_get_subjectCN(CYASSL_X509* x509) { if (x509 == NULL) @@ -6682,7 +6684,9 @@ int CyaSSL_set_compression(CYASSL* ssl) return x509->subjectCN; } +#endif /* KEEP_PEER_CERT */ +#ifdef OPENSSL_EXTRA #ifdef FORTRESS int CyaSSL_cmp_peer_cert_to_file(CYASSL* ssl, const char *fname)