summaryrefslogtreecommitdiff
path: root/ssl/kssl.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-05-11 22:52:34 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-05-11 22:52:34 +0000
commit39348038df4bb14c2235e9fba07bdcad470feccf (patch)
tree0f140bc456fcfe28329bf533427903f3e0b6144d /ssl/kssl.c
parent9472baae0d17ddf425f891a3154057356217af08 (diff)
downloadopenssl-new-39348038df4bb14c2235e9fba07bdcad470feccf.tar.gz
make kerberos work with OPENSSL_NO_SSL_INTERN
Diffstat (limited to 'ssl/kssl.c')
-rw-r--r--ssl/kssl.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/ssl/kssl.c b/ssl/kssl.c
index b820e37464..fd7c67bb1f 100644
--- a/ssl/kssl.c
+++ b/ssl/kssl.c
@@ -2194,6 +2194,22 @@ krb5_error_code kssl_build_principal_2(
return ENOMEM;
}
+void SSL_set0_kssl_ctx(SSL *s, KSSL_CTX *kctx)
+ {
+ s->kssl_ctx = kctx;
+ }
+
+KSSL_CTX * SSL_get0_kssl_ctx(SSL *s)
+ {
+ return s->kssl_ctx;
+ }
+
+char *kssl_ctx_get0_client_princ(KSSL_CTX *kctx)
+ {
+ if (kctx)
+ return kctx->client_princ;
+ return NULL;
+ }
#else /* !OPENSSL_NO_KRB5 */