summaryrefslogtreecommitdiff
path: root/cmd/tstclnt/tstclnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/tstclnt/tstclnt.c')
-rw-r--r--cmd/tstclnt/tstclnt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/tstclnt/tstclnt.c b/cmd/tstclnt/tstclnt.c
index 4b0d06302..246c0a482 100644
--- a/cmd/tstclnt/tstclnt.c
+++ b/cmd/tstclnt/tstclnt.c
@@ -118,6 +118,11 @@ printSecurityInfo(PRFileDesc *fd)
result = SSL_GetCipherSuiteInfo(channel.cipherSuite,
&suite, sizeof suite);
if (result == SECSuccess) {
+ const char *EMSUsed = "?";
+ if (SSL_CHANNEL_INFO_FIELD_EXISTS(channel, extendedMasterSecretUsed)) {
+ EMSUsed = SSL_CHANNEL_INFO_FIELD_GET(channel, extendedMasterSecretUsed) ?
+ "Yes": "No";
+ }
FPRINTF(stderr,
"tstclnt: SSL version %d.%d using %d-bit %s with %d-bit %s MAC\n",
channel.protocolVersion >> 8, channel.protocolVersion & 0xff,
@@ -129,7 +134,7 @@ printSecurityInfo(PRFileDesc *fd)
channel.authKeyBits, suite.authAlgorithmName,
channel.keaKeyBits, suite.keaTypeName,
channel.compressionMethodName,
- channel.extendedMasterSecretUsed ? "Yes" : "No");
+ EMSUsed);
}
}
cert = SSL_RevealCert(fd);