aboutsummaryrefslogtreecommitdiff
path: root/ssl/ssltest.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-11-30 22:53:34 +0000
committerRichard Levitte <levitte@openssl.org>2000-11-30 22:53:34 +0000
commitf9b3bff6f7e38960bb87a5623fbcbc45ee952c49 (patch)
tree3b5535854e57c4b07894e4775594cf2b50c61628 /ssl/ssltest.c
parentfc2e05c2d5c078d1fdf0ee56fc118ea471000a3a (diff)
downloadopenssl-f9b3bff6f7e38960bb87a5623fbcbc45ee952c49.zip
openssl-f9b3bff6f7e38960bb87a5623fbcbc45ee952c49.tar.gz
openssl-f9b3bff6f7e38960bb87a5623fbcbc45ee952c49.tar.bz2
First tentative impementation of Kerberos 5 cryptos and keys for SSL/TLS. Implemented by Vern Staats <staatsvr@asc.hpc.mil>, further hacked and distributed by Jeffrey Altman <jaltnab@columbia.edu>
Diffstat (limited to 'ssl/ssltest.c')
-rw-r--r--ssl/ssltest.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c
index b44a5ec..1e68534 100644
--- a/ssl/ssltest.c
+++ b/ssl/ssltest.c
@@ -74,6 +74,7 @@
#include <openssl/err.h>
#include <openssl/rand.h>
#ifdef WINDOWS
+#include <winsock.h>
#include "../crypto/bio/bss_file.c"
#endif
@@ -517,6 +518,19 @@ bad:
c_ssl=SSL_new(c_ctx);
s_ssl=SSL_new(s_ctx);
+#ifndef NO_KRB5
+ if (c_ssl && c_ssl->kssl_ctx)
+ {
+ char localhost[257];
+
+ if (gethostname(localhost, 256) == 0)
+ {
+ kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER,
+ localhost);
+ }
+ }
+#endif /* NO_KRB5 */
+
for (i=0; i<number; i++)
{
if (!reuse) SSL_set_session(c_ssl,NULL);