comparison packet.c @ 232:cbf1165d9386

trans, not recv for macsize
author Matt Johnston <matt@ucc.asn.au>
date Tue, 30 Aug 2005 17:56:53 +0000
parents 5e4110bb753a
children c5d3ef11155f
comparison
equal deleted inserted replaced
231:16f552859ee6 232:cbf1165d9386
529 unsigned long bufsize; 529 unsigned long bufsize;
530 hmac_state hmac; 530 hmac_state hmac;
531 531
532 TRACE(("enter writemac")) 532 TRACE(("enter writemac"))
533 533
534 macsize = ses.keys->recv_algo_mac->hashsize; 534 macsize = ses.keys->trans_algo_mac->hashsize;
535 if (macsize > 0) { 535 if (macsize > 0) {
536 /* calculate the mac */ 536 /* calculate the mac */
537 if (hmac_init(&hmac, 537 if (hmac_init(&hmac,
538 find_hash(ses.keys->trans_algo_mac->hashdesc->name), 538 find_hash(ses.keys->trans_algo_mac->hashdesc->name),
539 ses.keys->transmackey, 539 ses.keys->transmackey,