comparison usr/src/lib/libkmsagent/common/k_setupssl.h @ 12720:3db6e0082404

PSARC 2010/195 PKCS11 KMS Provider 6944296 Solaris needs a PKCS#11 provider to allow access to KMS keystore functionality
author Wyllys Ingersoll <Wyllys.Ingersoll@Sun.COM>
date Mon, 28 Jun 2010 16:04:11 -0700
parents
children
comparison
equal deleted inserted replaced
12719:bd9fb35d09c2 12720:3db6e0082404
1 /*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24 */
25
26 /*---------------------------------------------------------------------------
27 * Module: k_setupssl.h
28 * Operating System: Linux, Win32
29 *
30 * Description:
31 * This is the header file of setting up OpenSSL
32 */
33
34 #ifndef _K_SETUP_SSL_H
35 #define _K_SETUP_SSL_H
36
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40
41 #ifdef METAWARE
42 #include "stdsoap2.h"
43 /**
44 * set up gSoap I/O callback functions for environments that need to customize
45 * the I/O functions, e.g. embedded agents.
46 */
47 int K_SetupCallbacks( struct soap *i_pSoap );
48
49 int K_ssl_client_context(struct soap *i_pSoap,
50 int flags,
51 const char *keyfile, /* NULL - SERVER */
52 const char *password, /* NULL - SERVER */
53 const char *cafile,
54 const char *capath, /* ALWAYS NULL */
55 const char *randfile);
56 #endif
57
58
59 int K_SetupSSL();
60 void K_CleanupSSL();
61
62 #ifdef __cplusplus
63 }
64 #endif
65
66 #endif