]>
git.ipfire.org Git - thirdparty/squid.git/blob - helpers/negotiate_auth/squid_kerb_auth/spnegohelp/spnegohelp.h
1 /* -----------------------------------------------------------------------------
2 * spnegohelp.c declares RFC 2478 SPNEGO GSS-API mechanism APIs.
4 * Author: Frank Balluffi
6 * Copyright (C) 2002-2003. All rights reserved.
7 * -----------------------------------------------------------------------------
19 /* -----------------------------------------------------------------------------
20 * makeNegTokenTarg makes an RFC 2478 SPNEGO NegTokenTarg (token) from an
21 * RFC 1964 Kerberos GSS-API token.
23 * If makeNegTokenTarg is successful, call free (*negTokenTarg) to free the
24 * memory allocated by parseNegTokenInit.
26 * Returns 0 if successful, 1 otherwise.
27 * -----------------------------------------------------------------------------
30 int makeNegTokenTarg (const unsigned char * kerberosToken
,
31 size_t kerberosTokenLength
,
32 const unsigned char ** negTokenTarg
,
33 size_t * negTokenTargLength
);
35 /* -----------------------------------------------------------------------------
36 * parseNegTokenInit parses an RFC 2478 SPNEGO NegTokenInit (token) to extract
37 * an RFC 1964 Kerberos GSS-API token.
39 * If the NegTokenInit does cotain a Kerberos GSS-API token, parseNegTokenInit
42 * If parseNegTokenInit is successful, call free (*kerberosToken) to
43 * free the memory allocated by parseNegTokenInit.
45 * Returns 0 if successful, 1 otherwise.
46 * -----------------------------------------------------------------------------
49 int parseNegTokenInit (const unsigned char * negTokenInit
,
50 size_t negTokenInitLength
,
51 const unsigned char ** kerberosToken
,
52 size_t * kerberosTokenLength
);
58 #endif /* SPNEGOHELP_H */