aboutsummaryrefslogtreecommitdiff
path: root/sys/kgssapi/gssapi.h
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2023-10-23 20:21:14 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2023-10-23 20:21:14 +0000
commitdd7d42a1fae5a4879b62689a165238082421f343 (patch)
tree6aa4f426f7b65492fc0527d51a48c70942e36d4c /sys/kgssapi/gssapi.h
parent428879dc9110240ad0940c7ac8cd69bcaf6e686e (diff)
Diffstat (limited to 'sys/kgssapi/gssapi.h')
-rw-r--r--sys/kgssapi/gssapi.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/kgssapi/gssapi.h b/sys/kgssapi/gssapi.h
index ef9181bf1251..37cc8a1a5a09 100644
--- a/sys/kgssapi/gssapi.h
+++ b/sys/kgssapi/gssapi.h
@@ -372,6 +372,18 @@ extern gss_OID GSS_KRB5_NT_STRING_UID_NAME;
#define GSS_S_GAP_TOKEN \
(1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 4))
+/*
+ * NI_MAXSERV and NI_MAXHOST. The srv_principal argument for
+ * rpc_gss_ip_to_srv_principal should point to at least
+ * NI_MAXSERV + NI_MAXHOST + 1 bytes of storage. The "+ 1" is for the '@'.
+ * The NI_MAXHOST limit is checked for gss_ip_to_dns().
+ * These should be set to the same value as they are in <netdb.h>.
+ */
+#ifndef NI_MAXHOST
+#define NI_MAXSERV 32
+#define NI_MAXHOST 1025
+#endif
+
__BEGIN_DECLS
/*
@@ -568,6 +580,12 @@ OM_uint32 gss_pname_to_unix_cred
gid_t *groups /* pointer to group list */
);
+OM_uint32 gss_ip_to_dns
+ (OM_uint32 *, /* minor status */
+ char *ip_addr, /* IP host address string */
+ char *dns_name /* pointer to dns_name for result */
+ );
+
/*
* Mbuf oriented message signing and encryption.
*