1 /* EXPORT DELETE START */
2
3 /*
4 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
5 * Use is subject to license terms.
6 */
7
8
9 /*
10 * Copyright 1993 by OpenVision Technologies, Inc.
11 *
12 * Permission to use, copy, modify, distribute, and sell this software
13 * and its documentation for any purpose is hereby granted without fee,
14 * provided that the above copyright notice appears in all copies and
15 * that both that copyright notice and this permission notice appear in
16 * supporting documentation, and that the name of OpenVision not be used
17 * in advertising or publicity pertaining to distribution of the software
18 * without specific, written prior permission. OpenVision makes no
19 * representations about the suitability of this software for any
20 * purpose. It is provided "as is" without express or implied warranty.
21 *
22 * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
67 gss_ctx_id_t context_handle;
68 gss_buffer_t input_message_buffer;
69 gss_buffer_t output_message_buffer;
70 int *conf_state;
71 gss_qop_t *qop_state;
72 {
73 #ifdef KRB5_NO_PRIVACY
74 return (GSS_S_FAILURE);
75 #else
76 OM_uint32 rstat;
77 int qstate;
78
79 rstat = kg_unseal(minor_status, context_handle,
80 input_message_buffer, output_message_buffer,
81 conf_state, &qstate, KG_TOK_WRAP_MSG);
82 if (!rstat && qop_state)
83 *qop_state = (gss_qop_t) qstate;
84 return(rstat);
85 #endif
86 }
87
88 /* EXPORT DELETE END */
|
1 /*
2 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5
6
7 /*
8 * Copyright 1993 by OpenVision Technologies, Inc.
9 *
10 * Permission to use, copy, modify, distribute, and sell this software
11 * and its documentation for any purpose is hereby granted without fee,
12 * provided that the above copyright notice appears in all copies and
13 * that both that copyright notice and this permission notice appear in
14 * supporting documentation, and that the name of OpenVision not be used
15 * in advertising or publicity pertaining to distribution of the software
16 * without specific, written prior permission. OpenVision makes no
17 * representations about the suitability of this software for any
18 * purpose. It is provided "as is" without express or implied warranty.
19 *
20 * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
65 gss_ctx_id_t context_handle;
66 gss_buffer_t input_message_buffer;
67 gss_buffer_t output_message_buffer;
68 int *conf_state;
69 gss_qop_t *qop_state;
70 {
71 #ifdef KRB5_NO_PRIVACY
72 return (GSS_S_FAILURE);
73 #else
74 OM_uint32 rstat;
75 int qstate;
76
77 rstat = kg_unseal(minor_status, context_handle,
78 input_message_buffer, output_message_buffer,
79 conf_state, &qstate, KG_TOK_WRAP_MSG);
80 if (!rstat && qop_state)
81 *qop_state = (gss_qop_t) qstate;
82 return(rstat);
83 #endif
84 }
|