diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-05-11 22:50:18 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-05-11 22:50:18 +0000 |
commit | 4f7a2ab8b15c1d1aed748e3d580a38a93760a517 (patch) | |
tree | f3cc49f457c3b7ecbb63f608ec9c325f297b5cb5 /apps/s_client.c | |
parent | b0188c4f07829d006d087f8c16362caa4bb585ec (diff) | |
download | openssl-4f7a2ab8b15c1d1aed748e3d580a38a93760a517.tar.gz |
make kerberos work with OPENSSL_NO_SSL_INTERN
Diffstat (limited to 'apps/s_client.c')
-rw-r--r-- | apps/s_client.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index 2b8b1455eb..683169aa68 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -539,6 +539,9 @@ int MAIN(int argc, char **argv) { unsigned int off=0, clr=0; SSL *con=NULL; +#ifndef OPENSSL_NO_KRB5 + KSSL_CTX *kctx; +#endif int s,k,width,state=0; char *cbuf=NULL,*sbuf=NULL,*mbuf=NULL; int cbuf_len,cbuf_off; @@ -1212,9 +1215,10 @@ bad: } #endif #ifndef OPENSSL_NO_KRB5 - if (con && (con->kssl_ctx = kssl_ctx_new()) != NULL) + if (con && (kctx = kssl_ctx_new()) != NULL) { - kssl_ctx_setstring(con->kssl_ctx, KSSL_SERVER, host); + SSL_set0_kssl_ctx(con, kctx); + kssl_ctx_setstring(kctx, KSSL_SERVER, host); } #endif /* OPENSSL_NO_KRB5 */ /* SSL_set_cipher_list(con,"RC4-MD5"); */ |