1 /* rxgk.h - External interfaces for RXGK */
3 * Copyright (C) 2013, 2014 by the Massachusetts Institute of Technology.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
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
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
);
52 struct rx_securityClass
* rxgk_NewServerSecurityObject(void *getkey_rock
,
53 rxgk_getkey_func getkey
);
55 struct rx_securityClass
*rxgk_NewClientSecurityObject(RXGK_Level level
,
61 #endif /* OPENAFS_RXGK_H */