diff --git a/src/internal.c b/src/internal.c index 20da4fd67..203a6c3a7 100644 --- a/src/internal.c +++ b/src/internal.c @@ -18008,6 +18008,7 @@ const char* GetCipherEncStr(char n[][MAX_SEGMENT_SZ]) { return encStr; } +/* Returns the MAC string of a cipher or "unknown" on failure */ const char* GetCipherMacStr(char n[][MAX_SEGMENT_SZ]) { const char* macStr = NULL; @@ -18041,6 +18042,7 @@ const char* GetCipherMacStr(char n[][MAX_SEGMENT_SZ]) { return macStr; } +/* Returns the number of bits based on the cipher enc string, or 0 on failure */ int SetCipherBits(const char* enc) { int ret = WOLFSSL_FAILURE; diff --git a/src/ssl.c b/src/ssl.c index 588922df6..2308267c3 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -18269,6 +18269,9 @@ WOLF_STACK_OF(WOLFSSL_X509)* wolfSSL_get_peer_cert_chain(const WOLFSSL* ssl) } #if defined(WOLFSSL_QT) || defined(OPENSSL_ALL) +/* Builds up and creates a stack of peer certificates for ssl->peerCertChain + based off of the ssl session chain. Returns stack of WOLFSSL_X509 certs or + NULL on failure */ WOLF_STACK_OF(WOLFSSL_X509)* wolfSSL_set_peer_cert_chain(WOLFSSL* ssl) { WOLFSSL_STACK* sk; diff --git a/wolfssl/wolfcrypt/asn.h b/wolfssl/wolfcrypt/asn.h index 0bca70b5b..dbd466478 100644 --- a/wolfssl/wolfcrypt/asn.h +++ b/wolfssl/wolfcrypt/asn.h @@ -1135,7 +1135,7 @@ WOLFSSL_LOCAL int GetASNTag(const byte* input, word32* idx, byte* tag, WOLFSSL_LOCAL word32 SetLength(word32 length, byte* output); WOLFSSL_LOCAL word32 SetSequence(word32 len, byte* output); WOLFSSL_LOCAL word32 SetOctetString(word32 len, byte* output); -#if defined(WOLFSSL_QT) || defined(OPENSSL_ALL) +#if (defined(WOLFSSL_QT) || defined(OPENSSL_ALL)) && !defined(NO_DH) WOLFSSL_LOCAL int wc_DhParamsToDer(DhKey* key, byte* out, word32* outSz); WOLFSSL_LOCAL int wc_DhPubKeyToDer(DhKey* key, byte* out, word32* outSz); WOLFSSL_LOCAL int wc_DhPrivKeyToDer(DhKey* key, byte* out, word32* outSz);