summaryrefslogtreecommitdiff
path: root/ssl/s2_enc.c
diff options
context:
space:
mode:
authorulf <ulf>1999-04-19 21:25:39 +0000
committerulf <ulf>1999-04-19 21:25:39 +0000
commitc15c32f4b8c5290db6791c652d9187716bd3d15a (patch)
tree776c0c1c5687edc8659084b838ddaadbe6b9d29e /ssl/s2_enc.c
parentcb859f5141c1672fc79d198b75426dd618b1fc25 (diff)
downloadopenssl-c15c32f4b8c5290db6791c652d9187716bd3d15a.tar.gz
Change functions to ANSI C.
Diffstat (limited to 'ssl/s2_enc.c')
-rw-r--r--ssl/s2_enc.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/ssl/s2_enc.c b/ssl/s2_enc.c
index af12dc472..09835008a 100644
--- a/ssl/s2_enc.c
+++ b/ssl/s2_enc.c
@@ -59,9 +59,7 @@
#include <stdio.h>
#include "ssl_locl.h"
-int ssl2_enc_init(s, client)
-SSL *s;
-int client;
+int ssl2_enc_init(SSL *s, int client)
{
/* Max number of bytes needed */
EVP_CIPHER_CTX *rs,*ws;
@@ -114,9 +112,7 @@ err:
/* read/writes from s->s2->mac_data using length for encrypt and
* decrypt. It sets the s->s2->padding, s->[rw]length and
* s->s2->pad_data ptr if we are encrypting */
-void ssl2_enc(s,send)
-SSL *s;
-int send;
+void ssl2_enc(SSL *s, int send)
{
EVP_CIPHER_CTX *ds;
unsigned long l;
@@ -146,10 +142,7 @@ int send;
EVP_Cipher(ds,s->s2->mac_data,s->s2->mac_data,l);
}
-void ssl2_mac(s, md,send)
-SSL *s;
-unsigned char *md;
-int send;
+void ssl2_mac(SSL *s, unsigned char *md, int send)
{
EVP_MD_CTX c;
unsigned char sequence[4],*p,*sec,*act;