diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-01-25 22:07:41 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-01-25 22:07:41 +0000 |
commit | 1c76b4b6ed726cf3c49d099ec491045e88bd5b6f (patch) | |
tree | 74b351325afe297aa80a376744d706ead12ef033 /usr.bin/ssh/mac.c | |
parent | ca92548caddc392454252cf0e134fceebaf208e4 (diff) |
use EVP_MD_size(evp_md) and not evp_md->md_size; ok steveks@
Diffstat (limited to 'usr.bin/ssh/mac.c')
-rw-r--r-- | usr.bin/ssh/mac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/mac.c b/usr.bin/ssh/mac.c index bb342cef4aa..b250af2aa34 100644 --- a/usr.bin/ssh/mac.c +++ b/usr.bin/ssh/mac.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: mac.c,v 1.3 2001/12/19 07:18:56 deraadt Exp $"); +RCSID("$OpenBSD: mac.c,v 1.4 2002/01/25 22:07:40 markus Exp $"); #include <openssl/hmac.h> @@ -56,7 +56,7 @@ mac_init(Mac *mac, char *name) if (strcmp(name, macs[i].name) == 0) { if (mac != NULL) { mac->md = (*macs[i].mdfunc)(); - mac->key_len = mac->mac_len = mac->md->md_size; + mac->key_len = mac->mac_len = EVP_MD_size(mac->md); if (macs[i].truncatebits != 0) mac->mac_len = macs[i].truncatebits/8; } |