summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2016-04-11 10:17:38 -0400
committerRich Salz <rsalz@openssl.org>2016-04-14 08:41:29 -0400
commitcd1a88b3279a633f16c1a177574a83123c89c8b8 (patch)
tree4e3d440b8410964d5bf0a193947391f3547c0b3b /doc
parent4b6b848785314aa9b62475c520c04f675d6bfa71 (diff)
Write POD page.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/ssl/SSL_SESSION_get_hostname.pod28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/ssl/SSL_SESSION_get_hostname.pod b/doc/ssl/SSL_SESSION_get_hostname.pod
new file mode 100644
index 0000000000..8b739e30a2
--- /dev/null
+++ b/doc/ssl/SSL_SESSION_get_hostname.pod
@@ -0,0 +1,28 @@
+=pod
+
+=head1 NAME
+
+SSL_SESSION_get0_hostname - retrieve the SNI hostname associated with a session
+
+=head1 SYNOPSIS
+
+ #include <openssl/ssl.h>
+
+ const char *SSL_SESSION_get0_hostname(const SSL_SESSSION *s);
+
+=head1 DESCRIPTION
+
+SSL_SESSION_get0_hostname() retrieves the SNI value that was sent by the
+client when the session was created, or NULL if no value was sent.
+
+The value returned is a pointer to memory maintained within B<s> and
+should not be free'd.
+
+=head1 SEE ALSO
+
+L<ssl(3)>,
+L<d2i_SSL_SESSION(3)>,
+L<SSL_SESSION_get_time(3)>,
+L<SSL_SESSION_free(3)>
+
+=cut