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