Print this page
first pass
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/gssapi/mechs/krb5/mech/unseal.c
+++ new/usr/src/uts/common/gssapi/mechs/krb5/mech/unseal.c
1 -/* EXPORT DELETE START */
2 -
3 1 /*
4 2 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
5 3 * Use is subject to license terms.
6 4 */
7 5
8 6
9 7 /*
10 8 * Copyright 1993 by OpenVision Technologies, Inc.
11 9 *
12 10 * Permission to use, copy, modify, distribute, and sell this software
13 11 * and its documentation for any purpose is hereby granted without fee,
14 12 * provided that the above copyright notice appears in all copies and
15 13 * that both that copyright notice and this permission notice appear in
16 14 * supporting documentation, and that the name of OpenVision not be used
17 15 * in advertising or publicity pertaining to distribution of the software
18 16 * without specific, written prior permission. OpenVision makes no
19 17 * representations about the suitability of this software for any
20 18 * purpose. It is provided "as is" without express or implied warranty.
21 19 *
22 20 * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
23 21 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
24 22 * EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
25 23 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
26 24 * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27 25 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28 26 * PERFORMANCE OF THIS SOFTWARE.
29 27 */
30 28
31 29 #include "gssapiP_krb5.h"
32 30
33 31 /*
34 32 * $Id: unseal.c 16171 2004-03-15 17:45:01Z raeburn $
35 33 */
36 34
37 35 /*ARGSUSED*/
38 36 OM_uint32
39 37 krb5_gss_unseal(minor_status, context_handle,
40 38 input_message_buffer, output_message_buffer,
41 39 conf_state, qop_state
42 40 #ifdef _KERNEL
43 41 , gssd_ctx_verifier
44 42 #endif
45 43 )
46 44 OM_uint32 *minor_status;
47 45 gss_ctx_id_t context_handle;
48 46 gss_buffer_t input_message_buffer;
49 47 gss_buffer_t output_message_buffer;
50 48 int *conf_state;
51 49 int *qop_state;
52 50 #ifdef _KERNEL
53 51 OM_uint32 gssd_ctx_verifier;
54 52 #endif
55 53 {
56 54 return(kg_unseal(minor_status, context_handle,
57 55 input_message_buffer, output_message_buffer,
58 56 conf_state, qop_state, KG_TOK_SEAL_MSG));
59 57 }
60 58
61 59 /* V2 interface */
62 60 OM_uint32
63 61 krb5_gss_unwrap(minor_status, context_handle,
64 62 input_message_buffer, output_message_buffer,
65 63 conf_state, qop_state)
66 64 OM_uint32 *minor_status;
67 65 gss_ctx_id_t context_handle;
68 66 gss_buffer_t input_message_buffer;
69 67 gss_buffer_t output_message_buffer;
70 68 int *conf_state;
71 69 gss_qop_t *qop_state;
72 70 {
73 71 #ifdef KRB5_NO_PRIVACY
74 72 return (GSS_S_FAILURE);
75 73 #else
76 74 OM_uint32 rstat;
↓ open down ↓ |
64 lines elided |
↑ open up ↑ |
77 75 int qstate;
78 76
79 77 rstat = kg_unseal(minor_status, context_handle,
80 78 input_message_buffer, output_message_buffer,
81 79 conf_state, &qstate, KG_TOK_WRAP_MSG);
82 80 if (!rstat && qop_state)
83 81 *qop_state = (gss_qop_t) qstate;
84 82 return(rstat);
85 83 #endif
86 84 }
87 -
88 -/* EXPORT DELETE END */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX