Remove tls1_alert_code().
authorjsing <jsing@openbsd.org>
Sun, 13 Jun 2021 15:34:41 +0000 (15:34 +0000)
committerjsing <jsing@openbsd.org>
Sun, 13 Jun 2021 15:34:41 +0000 (15:34 +0000)
commit4bf5bada3341a226b7514d0e0842fc7525c73669
treee66ff99cacb41ca9d5cdaecd45396af31c9d2939
parent2b27cdd369ab0e623e54641c85ec9c37d976ae10
Remove tls1_alert_code().

After running the preprocessor, this function becomes:

  switch (code) {
  case 0:
   return (0);
  case 10:
   return (10);
  case 20:
   return (20);
  ...
  }

Its intended purpose was to prevent SSLv3 alerts being sent from TLS code,
however now that we've removed "no_certificate" from LibreSSL's reach, it
no longer does anything useful.

ok tb@
lib/libssl/ssl_locl.h
lib/libssl/ssl_pkt.c
lib/libssl/t1_enc.c