better inits for sniffer use

This commit is contained in:
toddouska
2013-02-26 09:00:46 -08:00
parent f3a16e56c7
commit b397f89b27

View File

@ -1221,6 +1221,7 @@ int InitSSL(CYASSL* ssl, CYASSL_CTX* ctx)
ssl->dtls_pool = NULL; ssl->dtls_pool = NULL;
ssl->dtls_msg_list = NULL; ssl->dtls_msg_list = NULL;
#endif #endif
ssl->keys.encryptSz = 0;
ssl->keys.encryptionOn = 0; /* initially off */ ssl->keys.encryptionOn = 0; /* initially off */
ssl->keys.decryptedCur = 0; /* initially off */ ssl->keys.decryptedCur = 0; /* initially off */
ssl->options.sessionCacheOff = ctx->sessionCacheOff; ssl->options.sessionCacheOff = ctx->sessionCacheOff;
@ -1301,6 +1302,7 @@ int InitSSL(CYASSL* ssl, CYASSL_CTX* ctx)
ssl->rng = NULL; ssl->rng = NULL;
ssl->arrays = NULL; ssl->arrays = NULL;
InitCiphers(ssl); InitCiphers(ssl);
InitCipherSpecs(&ssl->specs);
/* all done with init, now can return errors, call other stuff */ /* all done with init, now can return errors, call other stuff */
/* increment CTX reference count */ /* increment CTX reference count */