summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/ssl/s2_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/ssl/s2_enc.c')
-rw-r--r--crypto/openssl/ssl/s2_enc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/openssl/ssl/s2_enc.c b/crypto/openssl/ssl/s2_enc.c
index 8e5975c..69e5997 100644
--- a/crypto/openssl/ssl/s2_enc.c
+++ b/crypto/openssl/ssl/s2_enc.c
@@ -54,6 +54,8 @@
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
+ *
+ * $FreeBSD$
*/
#include "ssl_locl.h"
@@ -96,8 +98,7 @@ int ssl2_enc_init(SSL *s, int client)
num=c->key_len;
s->s2->key_material_length=num*2;
- if (ssl2_generate_key_material(s) <= 0)
- return 0;
+ ssl2_generate_key_material(s);
EVP_EncryptInit(ws,c,&(s->s2->key_material[(client)?num:0]),
s->session->key_arg);
OpenPOWER on IntegriCloud