diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-07-24 11:14:56 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-07-24 11:14:56 +0000 |
commit | 0b26e53c5979eb3bfdb7898e4d7a8d9d07c9acb4 (patch) | |
tree | 02645386c1862392494814ebd6b8a9d1beda4b0d /apps | |
parent | 7cf69ed5442a416c6b2d7e738ff98add3b53b7a2 (diff) |
PR: 1991
Submitted by: Michael Tuexen <tuexen@fh-muenster.de>
Approved by: steve@openssl.org
Print DTLS message types out with -msg arg.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_cb.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/s_cb.c b/apps/s_cb.c index a512589e8c..974ed5d0a5 100644 --- a/apps/s_cb.c +++ b/apps/s_cb.c @@ -338,6 +338,12 @@ void MS_CALLBACK msg_cb(int write_p, int version, int content_type, const void * break; default: str_version = "???"; + case DTLS1_VERSION: + str_version = "DTLS 1.0 "; + break; + case DTLS1_BAD_VER: + str_version = "DTLS 1.0 (bad) "; + break; } if (version == SSL2_VERSION) @@ -401,7 +407,10 @@ void MS_CALLBACK msg_cb(int write_p, int version, int content_type, const void * } } - if (version == SSL3_VERSION || version == TLS1_VERSION) + if (version == SSL3_VERSION || + version == TLS1_VERSION || + version == DTLS1_VERSION || + version == DTLS1_BAD_VER) { switch (content_type) { @@ -540,6 +549,9 @@ void MS_CALLBACK msg_cb(int write_p, int version, int content_type, const void * case 15: str_details1 = ", CertificateVerify"; break; + case 3: + str_details1 = ", HelloVerifyRequest"; + break; case 16: str_details1 = ", ClientKeyExchange"; break; |