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 /ssl/kssl.c | |
parent | b0188c4f07829d006d087f8c16362caa4bb585ec (diff) |
make kerberos work with OPENSSL_NO_SSL_INTERN
Diffstat (limited to 'ssl/kssl.c')
-rw-r--r-- | ssl/kssl.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ssl/kssl.c b/ssl/kssl.c index 0033e9bf62..ee0e73e8ac 100644 --- a/ssl/kssl.c +++ b/ssl/kssl.c @@ -2191,6 +2191,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 */ |