LINUX: afs_create infinite fetchStatus loop
[pkg-k5-afs_openafs.git] / src / rxgk / rxgk.h
blob56dbf6788dc0ddc405c9db3172b60cfa2b98593e
1 /* rxgk.h - External interfaces for RXGK */
2 /*
3 * Copyright (C) 2013, 2014 by the Massachusetts Institute of Technology.
4 * All rights reserved.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
13 * * Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in
15 * the documentation and/or other materials provided with the
16 * distribution.
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
29 * OF THE POSSIBILITY OF SUCH DAMAGE.
33 * External interfaces for RXGK.
36 #ifndef OPENAFS_RXGK_H
37 #define OPENAFS_RXGK_H
39 /* Pull in the com_err table */
40 #include <rx/rxgk_errs.h>
42 /* Pull in the protocol description */
43 #include <rx/rxgk_int.h>
45 /* rxgk_key is an opaque type to wrap our RFC3961 implementation's concept
46 * of a key. It has (at least) the keyblock and length, and enctype. */
47 typedef void * rxgk_key;
49 typedef afs_int32 (*rxgk_getkey_func)(void *rock, afs_int32 *kvno,
50 afs_int32 *enctype, rxgk_key *key);
51 /* rxgk_server.c */
52 struct rx_securityClass * rxgk_NewServerSecurityObject(void *getkey_rock,
53 rxgk_getkey_func getkey);
54 /* rxgk_client.c */
55 struct rx_securityClass *rxgk_NewClientSecurityObject(RXGK_Level level,
56 afs_int32 enctype,
57 rxgk_key k0,
58 RXGK_Data *token,
59 afsUUID *uuid);
61 #endif /* OPENAFS_RXGK_H */