summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2020-01-25 05:29:10 +0000
committertb <>2020-01-25 05:29:10 +0000
commit6050b22f41089412331fbc4210b0c467391b82e3 (patch)
treeac042a56e97cbc12be87301a3b69ad5ccbcfe339 /src
parent21cdcc3476ac4e3b947a5625b2fa0c999c15ae04 (diff)
downloadopenbsd-6050b22f41089412331fbc4210b0c467391b82e3.tar.gz
openbsd-6050b22f41089412331fbc4210b0c467391b82e3.tar.bz2
openbsd-6050b22f41089412331fbc4210b0c467391b82e3.zip
add a couple of XXX for future cleanup
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/s_cb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/s_cb.c b/src/usr.bin/openssl/s_cb.c
index 79510cf571..7122337433 100644
--- a/src/usr.bin/openssl/s_cb.c
+++ b/src/usr.bin/openssl/s_cb.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s_cb.c,v 1.12 2020/01/24 09:42:32 tb Exp $ */ 1/* $OpenBSD: s_cb.c,v 1.13 2020/01/25 05:29:10 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -390,6 +390,7 @@ msg_cb(int write_p, int version, int content_type, const void *buf, size_t len,
390 390
391 str_write_p = write_p ? ">>>" : "<<<"; 391 str_write_p = write_p ? ">>>" : "<<<";
392 392
393 /* XXX convert to using ssl_get_version */
393 switch (version) { 394 switch (version) {
394 case SSL2_VERSION: 395 case SSL2_VERSION:
395 str_version = "SSL 2.0"; 396 str_version = "SSL 2.0";
@@ -420,6 +421,7 @@ msg_cb(int write_p, int version, int content_type, const void *buf, size_t len,
420 str_details1 = "???"; 421 str_details1 = "???";
421 422
422 if (len > 0) { 423 if (len > 0) {
424 /* XXX magic numbers */
423 switch (((const unsigned char *) buf)[0]) { 425 switch (((const unsigned char *) buf)[0]) {
424 case 0: 426 case 0:
425 str_details1 = ", ERROR:"; 427 str_details1 = ", ERROR:";
@@ -473,6 +475,7 @@ msg_cb(int write_p, int version, int content_type, const void *buf, size_t len,
473 if (version == SSL3_VERSION || version == TLS1_VERSION || 475 if (version == SSL3_VERSION || version == TLS1_VERSION ||
474 version == TLS1_1_VERSION || version == TLS1_2_VERSION || 476 version == TLS1_1_VERSION || version == TLS1_2_VERSION ||
475 version == TLS1_3_VERSION || version == DTLS1_VERSION) { 477 version == TLS1_3_VERSION || version == DTLS1_VERSION) {
478 /* XXX magic numbers are in ssl3.h */
476 switch (content_type) { 479 switch (content_type) {
477 case 20: 480 case 20:
478 str_content_type = "ChangeCipherSpec"; 481 str_content_type = "ChangeCipherSpec";