mirror of https://github.com/wolfSSL/wolfssl.git
opensslextra fixs and warning for unused variable
parent
c41bc8205c
commit
8fb3ccacb7
19
src/ssl.c
19
src/ssl.c
|
@ -29435,20 +29435,25 @@ void* wolfSSL_GetDhAgreeCtx(WOLFSSL* ssl)
|
|||
#endif /* HAVE_ECC */
|
||||
|
||||
/* oidBlkType */
|
||||
#ifdef WOLFSSL_AES_128
|
||||
case AES128CBCb:
|
||||
sName = "AES-128-CBC";
|
||||
type = oidBlkType;
|
||||
break;
|
||||
|
||||
#endif
|
||||
#ifdef WOLFSSL_AES_192
|
||||
case AES192CBCb:
|
||||
sName = "AES-192-CBC";
|
||||
type = oidBlkType;
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef WOLFSSL_AES_256
|
||||
case AES256CBCb:
|
||||
sName = "AES-256-CBC";
|
||||
type = oidBlkType;
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifndef NO_DES3
|
||||
case NID_des:
|
||||
|
@ -29607,20 +29612,26 @@ void* wolfSSL_GetDhAgreeCtx(WOLFSSL* ssl)
|
|||
break;
|
||||
|
||||
/* oidKeyWrapType */
|
||||
#ifdef WOLFSSL_AES_128
|
||||
case AES128_WRAP:
|
||||
sName = "AES-128 wrap";
|
||||
type = oidKeyWrapType;
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef WOLFSSL_AES_192
|
||||
case AES192_WRAP:
|
||||
sName = "AES-192 wrap";
|
||||
type = oidKeyWrapType;
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef WOLFSSL_AES_256
|
||||
case AES256_WRAP:
|
||||
sName = "AES-256 wrap";
|
||||
type = oidKeyWrapType;
|
||||
break;
|
||||
#endif
|
||||
|
||||
/* oidCmsKeyAgreeType */
|
||||
#ifndef NO_SHA
|
||||
|
@ -30203,12 +30214,18 @@ void* wolfSSL_GetDhAgreeCtx(WOLFSSL* ssl)
|
|||
/* oidKeyWrapType */
|
||||
case oidKeyWrapType:
|
||||
switch (oid) {
|
||||
#ifdef WOLFSSL_AES_128
|
||||
case AES128_WRAP:
|
||||
return AES128_WRAP;
|
||||
#endif
|
||||
#ifdef WOLFSSL_AES_192
|
||||
case AES192_WRAP:
|
||||
return AES192_WRAP;
|
||||
#endif
|
||||
#ifdef WOLFSSL_AES_256
|
||||
case AES256_WRAP:
|
||||
return AES256_WRAP;
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -2431,6 +2431,7 @@ static int CheckAlgo(int first, int second, int* id, int* version)
|
|||
< 0 on error */
|
||||
static int CheckAlgoV2(int oid, int* id)
|
||||
{
|
||||
(void)id; /* not used if AES and DES3 disabled */
|
||||
switch (oid) {
|
||||
#ifndef NO_DES3
|
||||
case DESb:
|
||||
|
|
Loading…
Reference in New Issue