Fixes for build TLS v1.3 with NO_CERTS.

This commit is contained in:
David Garske
2020-05-12 09:26:27 -07:00
parent 093d9981fb
commit b417a76613
2 changed files with 3 additions and 10 deletions

View File

@ -7584,7 +7584,6 @@ static int EdDSA_Update(WOLFSSL* ssl, const byte* data, int sz)
}
#endif /* (HAVE_ED25519 || HAVE_ED448) && !WOLFSSL_NO_CLIENT_AUTH */
#ifndef NO_CERTS
int HashOutputRaw(WOLFSSL* ssl, const byte* output, int sz)
{
int ret = 0;
@ -7635,8 +7634,6 @@ int HashOutputRaw(WOLFSSL* ssl, const byte* output, int sz)
return ret;
}
#endif /* NO_CERTS */
/* add output to md5 and sha handshake hashes, exclude record header */
int HashOutput(WOLFSSL* ssl, const byte* output, int sz, int ivSz)
@ -15603,9 +15600,6 @@ static int SSL_hmac(WOLFSSL* ssl, byte* digest, const byte* in, word32 sz,
}
#endif /* !NO_OLD_TLS && !WOLFSSL_AEAD_ONLY */
#ifndef NO_CERTS
#if !defined(NO_MD5) && !defined(NO_OLD_TLS)
static int BuildMD5_CertVerify(WOLFSSL* ssl, byte* digest)
{
@ -15748,8 +15742,6 @@ int BuildCertHashes(WOLFSSL* ssl, Hashes* hashes)
return ret;
}
#endif /* !NO_CERTS */
#ifndef WOLFSSL_NO_TLS12
/* Persistable BuildMessage arguments */
typedef struct BuildMsgArgs {

View File

@ -3102,6 +3102,7 @@ static int DoTls13EncryptedExtensions(WOLFSSL* ssl, const byte* input,
return ret;
}
#ifndef NO_CERTS
/* handle processing TLS v1.3 certificate_request (13) */
/* Handle a TLS v1.3 CertificateRequest message.
* This message is always encrypted.
@ -3203,7 +3204,7 @@ static int DoTls13CertificateRequest(WOLFSSL* ssl, const byte* input,
return ret;
}
#endif /* !NO_CERTS */
#endif /* !NO_WOLFSSL_CLIENT */
#ifndef NO_WOLFSSL_SERVER
@ -5823,6 +5824,7 @@ exit_dcv:
return ret;
}
#endif /* !NO_RSA || HAVE_ECC */
#endif /* !NO_CERTS */
/* Parse and handle a TLS v1.3 Finished message.
*
@ -5930,7 +5932,6 @@ static int DoTls13Finished(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
return 0;
}
#endif /* NO_CERTS */
/* Send the TLS v1.3 Finished message.
*