Add include dir
[openssl.git] / ssl / s2_enc.c
index b915f099e55a73b4e94d106697b5dec03059d126..b43056fa14fb33a4fcff99a38cef1925053f9fa9 100644 (file)
@@ -1,5 +1,5 @@
 /* ssl/s2_enc.c */
-/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
  * This package is an SSL implementation written
@@ -59,9 +59,6 @@
 #include <stdio.h>
 #include "ssl_locl.h"
 
-#define RS     0
-#define WS     1
-
 int ssl2_enc_init(s, client)
 SSL *s;
 int client;
@@ -94,6 +91,9 @@ int client;
        rs= s->enc_read_ctx;
        ws= s->enc_write_ctx;
 
+       EVP_CIPHER_CTX_init(rs);
+       EVP_CIPHER_CTX_init(ws);
+
        num=c->key_len;
        s->s2->key_material_length=num*2;