Merge branch 'master' of https://github.com/cyassl/cyassl
This commit is contained in:
commit
db383fbbac
@ -12284,7 +12284,7 @@ int DoSessionTicket(WOLFSSL* ssl,
|
||||
ERROR_OUT(MEMORY_E, done_b);
|
||||
#endif
|
||||
|
||||
if ((ret = InitSha(sha) != 0))
|
||||
if ((ret = InitSha(sha)) != 0)
|
||||
goto done_b;
|
||||
|
||||
ShaUpdate(sha, ssl->arrays->clientRandom, RAN_LEN);
|
||||
|
@ -2029,7 +2029,7 @@ int PemToDer(const unsigned char* buff, long longSz, int type,
|
||||
header = BEGIN_ENC_PRIV_KEY; footer = END_ENC_PRIV_KEY;
|
||||
} else if (header == BEGIN_ENC_PRIV_KEY) {
|
||||
header = BEGIN_EC_PRIV; footer = END_EC_PRIV;
|
||||
} else if (header == BEGIN_ENC_PRIV_KEY) {
|
||||
} else if (header == BEGIN_EC_PRIV) {
|
||||
header = BEGIN_DSA_PRIV; footer = END_DSA_PRIV;
|
||||
} else
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user