projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update comment
[oweals/openssl.git]
/
ssl
/
s2_pkt.c
diff --git
a/ssl/s2_pkt.c
b/ssl/s2_pkt.c
index d82f1376135eef80810cb989da6e01d89b578a7a..e6d5d09643ba2c0f0f1f336c3341a50191825353 100644
(file)
--- a/
ssl/s2_pkt.c
+++ b/
ssl/s2_pkt.c
@@
-113,7
+113,6
@@
#ifndef OPENSSL_NO_SSL2
#include <stdio.h>
#include <errno.h>
#ifndef OPENSSL_NO_SSL2
#include <stdio.h>
#include <errno.h>
-#include "cryptlib.h"
#define USE_SOCKETS
static int read_n(SSL *s,unsigned int n,unsigned int max,unsigned int extend);
#define USE_SOCKETS
static int read_n(SSL *s,unsigned int n,unsigned int max,unsigned int extend);
@@
-247,7
+246,7
@@
static int ssl2_read_internal(SSL *s, void *buf, int len, int peek)
}
else
{
}
else
{
- mac_size=EVP_MD_size(s->read_hash);
+ mac_size=EVP_MD_
CTX_
size(s->read_hash);
OPENSSL_assert(mac_size <= MAX_MAC_SIZE);
s->s2->mac_data=p;
s->s2->ract_data= &p[mac_size];
OPENSSL_assert(mac_size <= MAX_MAC_SIZE);
s->s2->mac_data=p;
s->s2->ract_data= &p[mac_size];
@@
-530,7
+529,7
@@
static int do_ssl_write(SSL *s, const unsigned char *buf, unsigned int len)
if (s->s2->clear_text)
mac_size=0;
else
if (s->s2->clear_text)
mac_size=0;
else
- mac_size=EVP_MD_size(s->write_hash);
+ mac_size=EVP_MD_
CTX_
size(s->write_hash);
/* lets set the pad p */
if (s->s2->clear_text)
/* lets set the pad p */
if (s->s2->clear_text)