kssl.h revision 11d0a659fdd288190c17d8600ecd218e9a9b546d
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#ifndef _INET_KSSL_KSSL_H
#define _INET_KSSL_KSSL_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct kssl_object_attribute {
typedef struct kssl_key {
} kssl_key_t;
typedef struct kssl_certs_s {
} kssl_certs_t;
#define MAX_PIN_LENGTH 1024
typedef struct kssl_tokinfo_s {
/* Code point for Signalling Cipher Suite Value (SCSV) */
#define SSL_SCSV 0x00ff
/* Cipher suites */
#define SSL_RSA_WITH_NULL_SHA 0x0002
#define SSL_RSA_WITH_RC4_128_MD5 0x0004
#define SSL_RSA_WITH_RC4_128_SHA 0x0005
#define SSL_RSA_WITH_DES_CBC_SHA 0x0009
#define SSL_RSA_WITH_3DES_EDE_CBC_SHA 0x000a
#define TLS_RSA_WITH_AES_128_CBC_SHA 0x002f
#define TLS_RSA_WITH_AES_256_CBC_SHA 0x0035
/* total number of cipher suites supported */
#define CIPHER_SUITE_COUNT 7
#define CIPHER_NOTSET 0xffff
/* TLS extension types */
#define TLSEXT_RENEGOTIATION_INFO 0xff01
#define DEFAULT_SID_CACHE_NENTRIES 5000
typedef struct kssl_params_s {
/* address and port number */
struct sockaddr_in6 kssl_addr;
/*
* Contains ordered list of cipher suites. We do not include
* the one suite with no encryption. Hence the -1.
*/
/* certificates */
/* private key */
#ifdef _KERNEL
extern int kssl_add_entry(kssl_params_t *);
extern int kssl_delete_entry(struct sockaddr_in6 *);
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _INET_KSSL_KSSL_H */