/[hydra]/hydra/src/ssl.c
ViewVC logotype

Diff of /hydra/src/ssl.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by nmav, Sat Oct 5 16:42:53 2002 UTC revision 1.11 by nmav, Sun Oct 6 07:52:59 2002 UTC
# Line 303  int initialize_ssl(void) Line 303  int initialize_ssl(void)
303      i = 0;      i = 0;
304      if ( parse_cs_string( ssl_mac, "MD5") != 0)      if ( parse_cs_string( ssl_mac, "MD5") != 0)
305          mac_priority[i++] = GNUTLS_MAC_MD5;          mac_priority[i++] = GNUTLS_MAC_MD5;
306      if ( parse_cs_string( ssl_mac, "SHA") != 0)      if ( parse_cs_string( ssl_mac, "SHA1") != 0)
307          mac_priority[i++] = GNUTLS_MAC_SHA;          mac_priority[i++] = GNUTLS_MAC_SHA;
308      mac_priority[i] = 0;      mac_priority[i] = 0;
309    
# Line 572  int finish_handshake(request * current) Line 572  int finish_handshake(request * current)
572               * send fatal alerts.               * send fatal alerts.
573               */               */
574              current->alert_to_send = gnutls_error_to_alert( retval, NULL);              current->alert_to_send = gnutls_error_to_alert( retval, NULL);
575              if (current->alert_to_send >= 0) {              if (current->alert_to_send == GNUTLS_E_INVALID_REQUEST)
576                  current->status = SEND_ALERT;                 current->alert_to_send = GNUTLS_A_HANDSHAKE_FAILURE;
577              }  
578                current->status = SEND_ALERT;
579              retval = 1;              retval = 1;
580          } else {          } else {
581              check_ssl_alert( current, retval);              check_ssl_alert( current, retval);
# Line 691  void ssl_reinit() Line 692  void ssl_reinit()
692      i = 0;      i = 0;
693      if ( parse_cs_string( ssl_mac, "MD5") != 0)      if ( parse_cs_string( ssl_mac, "MD5") != 0)
694          mac_priority[i++] = GNUTLS_MAC_MD5;          mac_priority[i++] = GNUTLS_MAC_MD5;
695      if ( parse_cs_string( ssl_mac, "SHA") != 0)      if ( parse_cs_string( ssl_mac, "SHA1") != 0)
696          mac_priority[i++] = GNUTLS_MAC_SHA;          mac_priority[i++] = GNUTLS_MAC_SHA;
697      mac_priority[i] = 0;      mac_priority[i] = 0;
698    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26