forked from wolfSSL/wolfssl
Merge branch 'master' of github.com:cyassl/cyassl
This commit is contained in:
@ -7527,6 +7527,7 @@ int SetCipherList(Suites* s, const char* list)
|
|||||||
&ssl->buffers.serverDH_Pub.length);
|
&ssl->buffers.serverDH_Pub.length);
|
||||||
FreeDhKey(&dhKey);
|
FreeDhKey(&dhKey);
|
||||||
|
|
||||||
|
InitRsaKey(&rsaKey, ssl->heap);
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
length = LENGTH_SZ * 3; /* p, g, pub */
|
length = LENGTH_SZ * 3; /* p, g, pub */
|
||||||
length += ssl->buffers.serverDH_P.length +
|
length += ssl->buffers.serverDH_P.length +
|
||||||
@ -7542,7 +7543,6 @@ int SetCipherList(Suites* s, const char* list)
|
|||||||
if (!ssl->buffers.key.buffer)
|
if (!ssl->buffers.key.buffer)
|
||||||
return NO_PRIVATE_KEY;
|
return NO_PRIVATE_KEY;
|
||||||
|
|
||||||
InitRsaKey(&rsaKey, ssl->heap);
|
|
||||||
ret = RsaPrivateKeyDecode(ssl->buffers.key.buffer, &i, &rsaKey,
|
ret = RsaPrivateKeyDecode(ssl->buffers.key.buffer, &i, &rsaKey,
|
||||||
ssl->buffers.key.length);
|
ssl->buffers.key.length);
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
|
Reference in New Issue
Block a user