forked from wolfSSL/wolfssl
SSL: Change other ProcessBufferTryDecode*()
Ed448, Falcon and Dilithium changed to return 0 when key format is 0.
This commit is contained in:
11
src/ssl.c
11
src/ssl.c
@@ -6893,6 +6893,9 @@ static int ProcessBufferTryDecodeEd448(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (*keyFormat == 0) {
|
||||
ret = 0; /* continue trying other algorithms */
|
||||
}
|
||||
|
||||
wc_ed448_free(key);
|
||||
}
|
||||
@@ -6997,6 +7000,10 @@ static int ProcessBufferTryDecodeFalcon(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
|
||||
*resetSuites = 1;
|
||||
}
|
||||
}
|
||||
else if (*keyFormat == 0) {
|
||||
ret = 0; /* continue trying other algorithms */
|
||||
}
|
||||
|
||||
wc_falcon_free(key);
|
||||
}
|
||||
XFREE(key, heap, DYNAMIC_TYPE_FALCON);
|
||||
@@ -7111,6 +7118,10 @@ static int ProcessBufferTryDecodeDilithium(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
|
||||
*resetSuites = 1;
|
||||
}
|
||||
}
|
||||
else if (*keyFormat == 0) {
|
||||
ret = 0; /* continue trying other algorithms */
|
||||
}
|
||||
|
||||
wc_dilithium_free(key);
|
||||
}
|
||||
XFREE(key, heap, DYNAMIC_TYPE_DILITHIUM);
|
||||
|
Reference in New Issue
Block a user