diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2016-11-17 15:06:23 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2016-11-17 15:06:23 +0000 |
commit | 244b8ee97438b8d022e94a1c5af7e79cd6dc39ef (patch) | |
tree | 95cbf2c8c11226e4c01a7dea0c095e33c1af55bd /lib/libssl/s3_pkt.c | |
parent | 078208c3be1d6690a7ab138d4144166ab6fb86f4 (diff) |
Use defines instead of magic numbers and comments.
Diffstat (limited to 'lib/libssl/s3_pkt.c')
-rw-r--r-- | lib/libssl/s3_pkt.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libssl/s3_pkt.c b/lib/libssl/s3_pkt.c index 8d4212d4a16..20e66a707c0 100644 --- a/lib/libssl/s3_pkt.c +++ b/lib/libssl/s3_pkt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s3_pkt.c,v 1.59 2016/11/03 16:23:30 jsing Exp $ */ +/* $OpenBSD: s3_pkt.c,v 1.60 2016/11/17 15:06:22 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1123,8 +1123,7 @@ start: cb(s, SSL_CB_READ_ALERT, j); } - if (alert_level == 1) { - /* warning */ + if (alert_level == SSL3_AL_WARNING) { s->s3->warn_alert = alert_descr; if (alert_descr == SSL_AD_CLOSE_NOTIFY) { s->shutdown |= SSL_RECEIVED_SHUTDOWN; @@ -1145,8 +1144,7 @@ start: SSL_R_NO_RENEGOTIATION); goto f_err; } - } else if (alert_level == 2) { - /* fatal */ + } else if (alert_level == SSL3_AL_FATAL) { s->rwstate = SSL_NOTHING; s->s3->fatal_alert = alert_descr; SSLerr(SSL_F_SSL3_READ_BYTES, |