remove extra NULL check in SetTmpDH_buffer/file_wrapper, fix API tests

This commit is contained in:
Chris Conlon
2015-11-30 10:25:55 -07:00
parent 4217ef5475
commit d2a80ba1bc
2 changed files with 19 additions and 8 deletions

View File

@@ -4344,7 +4344,7 @@ static int wolfSSL_SetTmpDH_file_wrapper(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
long sz = 0;
XFILE file;
if (ctx == NULL || ssl == NULL || fname == NULL)
if (ctx == NULL || fname == NULL)
return BAD_FUNC_ARG;
file = XFOPEN(fname, "rb");
@@ -7242,7 +7242,7 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
byte g[MAX_DH_SIZE];
#endif
if (ctx == NULL || ssl == NULL || buf == NULL)
if (ctx == NULL || buf == NULL)
return BAD_FUNC_ARG;
der.buffer = (byte*)buf;