summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/os/trace.c
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@dahyabhai.net>2014-04-24 16:30:56 -0400
committerGreg Hudson <ghudson@mit.edu>2014-06-02 17:59:14 -0400
commitd950809ff49e3e7603594186d77135a09ab6b1b2 (patch)
treeaabcc959fcc9120277439b4911456960aac060df /src/lib/krb5/os/trace.c
parent606e2ccc0a2546a23761f910482a55c5bf0f98ac (diff)
downloadkrb5-d950809ff49e3e7603594186d77135a09ab6b1b2.tar.gz
krb5-d950809ff49e3e7603594186d77135a09ab6b1b2.tar.xz
krb5-d950809ff49e3e7603594186d77135a09ab6b1b2.zip
HTTPS transport (Microsoft KKDCPP implementation)
Add an 'HTTPS' transport type which connects to an [MS-KKDCP] proxy server using HTTPS to communicate with a KDC. The KDC's name should take the form of an HTTPS URL (e.g. "https://proxybox/KdcProxy"). An HTTPS connection's encryption layer can be reading and writing when the application layer is expecting to write and read, so the HTTPS callbacks have to handle being called multiple times. [nalin@redhat.com: use cleanup labels, make sure we always send the realm name, keep a copy of the URI on-hand, move most of the conditionally-compiled sections into their own conditionally-built functions, break out HTTPS request formatting into a helper function, handle the MS-KKDCP length bytes, update comments to mention specific versions of the MS-KKDCP spec, differentiate TCP and HTTP trace messages, trace unparseable responses] ticket: 7929
Diffstat (limited to 'src/lib/krb5/os/trace.c')
-rw-r--r--src/lib/krb5/os/trace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/krb5/os/trace.c b/src/lib/krb5/os/trace.c
index 8319a86bd..105a2cdb7 100644
--- a/src/lib/krb5/os/trace.c
+++ b/src/lib/krb5/os/trace.c
@@ -201,6 +201,8 @@ trace_format(krb5_context context, const char *fmt, va_list ap)
k5_buf_add(&buf, "dgram");
else if (ra->transport == TCP)
k5_buf_add(&buf, "stream");
+ else if (ra->transport == HTTPS)
+ k5_buf_add(&buf, "https");
else
k5_buf_add_fmt(&buf, "transport%d", ra->transport);