|
From: | shishi-commit |
Subject: | (shishi_encticketpart_client): Add. |
Date: | Thu, 11 Dec 2003 03:41:03 +0100 |
Commit from jas | 2003-12-11 03:41 CET |
(shishi_encticketpart_client): Add.
Module | File name | Revision | |||
---|---|---|---|---|---|
shishi | lib/encticketpart.c | 1.24 | >>> | 1.25 | |
shishi | lib/shishi.h.in | 1.187 | >>> | 1.188 |
shishi/lib/encticketpart.c 1.24 >>> 1.25 |
---|
Line 355 |
return t; } |
+ /** + * shishi_encticketpart_client: + * @handle: Shishi library handle create by shishi_init(). + * @encticketpart: EncTicketPart variable to get client name from. + * @client: pointer to newly allocated zero terminated string containing + * principal name. May be %NULL (to only populate @clientlen). + * @clientlen: pointer to length of @client on output, excluding terminating + * zero. May be %NULL (to only populate @client). + * + * Represent client principal name in EncTicketPart as zero-terminated + * string. The string is allocate by this function, and it is the + * responsibility of the caller to deallocate it. Note that the + * output length @clientlen does not include the terminating zero. + * + * Return value: Returns SHISHI_OK iff successful. + **/ + int + shishi_encticketpart_client (Shishi * handle, + Shishi_asn1 encticketpart, + char **client, size_t * clientlen) + { + return shishi_principal_name (handle, encticketpart, "cname", + client, clientlen); + } + |
int shishi_encticketpart_cname_get (Shishi * handle, Shishi_asn1 encticketpart, |
shishi/lib/shishi.h.in 1.187 >>> 1.188 |
---|
Line 1894 |
extern int shishi_encticketpart_crealm_set (Shishi * handle, Shishi_asn1 encticketpart, const char *realm); |
+ extern int shishi_encticketpart_client (Shishi * handle, + Shishi_asn1 encticketpart, + char **client, size_t * clientlen); |
extern int shishi_encticketpart_cname_get (Shishi * handle, Shishi_asn1 encticketpart, char *cname, size_t * cnamelen); |
[Prev in Thread] | Current Thread | [Next in Thread] |