1 /* EXPORT DELETE START */
2
3 /*
4 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
5 * Use is subject to license terms.
6 */
7
8 #pragma ident "%Z%%M% %I% %E% SMI"
9
10 /*
11 * Copyright 1993 by OpenVision Technologies, Inc.
12 *
13 * Permission to use, copy, modify, distribute, and sell this software
14 * and its documentation for any purpose is hereby granted without fee,
15 * provided that the above copyright notice appears in all copies and
16 * that both that copyright notice and this permission notice appear in
17 * supporting documentation, and that the name of OpenVision not be used
18 * in advertising or publicity pertaining to distribution of the software
19 * without specific, written prior permission. OpenVision makes no
20 * representations about the suitability of this software for any
21 * purpose. It is provided "as is" without express or implied warranty.
22 *
74 OM_uint32
75 krb5_gss_wrap(minor_status, context_handle, conf_req_flag,
76 qop_req, input_message_buffer, conf_state,
77 output_message_buffer)
78 OM_uint32 *minor_status;
79 gss_ctx_id_t context_handle;
80 int conf_req_flag;
81 gss_qop_t qop_req;
82 gss_buffer_t input_message_buffer;
83 int *conf_state;
84 gss_buffer_t output_message_buffer;
85 {
86 #ifdef KRB5_NO_PRIVACY
87 return (GSS_S_FAILURE);
88 #else
89 return(kg_seal(minor_status, context_handle, conf_req_flag,
90 (int) qop_req, input_message_buffer, conf_state,
91 output_message_buffer, KG_TOK_WRAP_MSG));
92 #endif
93 }
94
95 /* EXPORT DELETE END */
|
1 /*
2 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5
6 #pragma ident "%Z%%M% %I% %E% SMI"
7
8 /*
9 * Copyright 1993 by OpenVision Technologies, Inc.
10 *
11 * Permission to use, copy, modify, distribute, and sell this software
12 * and its documentation for any purpose is hereby granted without fee,
13 * provided that the above copyright notice appears in all copies and
14 * that both that copyright notice and this permission notice appear in
15 * supporting documentation, and that the name of OpenVision not be used
16 * in advertising or publicity pertaining to distribution of the software
17 * without specific, written prior permission. OpenVision makes no
18 * representations about the suitability of this software for any
19 * purpose. It is provided "as is" without express or implied warranty.
20 *
72 OM_uint32
73 krb5_gss_wrap(minor_status, context_handle, conf_req_flag,
74 qop_req, input_message_buffer, conf_state,
75 output_message_buffer)
76 OM_uint32 *minor_status;
77 gss_ctx_id_t context_handle;
78 int conf_req_flag;
79 gss_qop_t qop_req;
80 gss_buffer_t input_message_buffer;
81 int *conf_state;
82 gss_buffer_t output_message_buffer;
83 {
84 #ifdef KRB5_NO_PRIVACY
85 return (GSS_S_FAILURE);
86 #else
87 return(kg_seal(minor_status, context_handle, conf_req_flag,
88 (int) qop_req, input_message_buffer, conf_state,
89 output_message_buffer, KG_TOK_WRAP_MSG));
90 #endif
91 }
|