003 File Manager
Current Path:
/usr/src/contrib/wpa/src/tls
usr
/
src
/
contrib
/
wpa
/
src
/
tls
/
📁
..
📄
asn1.c
(5.23 KB)
📄
asn1.h
(2.36 KB)
📄
bignum.c
(5.36 KB)
📄
bignum.h
(1.13 KB)
📄
libtommath.c
(76.2 KB)
📄
pkcs1.c
(7.28 KB)
📄
pkcs1.h
(872 B)
📄
pkcs5.c
(16.32 KB)
📄
pkcs5.h
(404 B)
📄
pkcs8.c
(5.09 KB)
📄
pkcs8.h
(436 B)
📄
rsa.c
(8.76 KB)
📄
rsa.h
(770 B)
📄
tlsv1_client.c
(23.34 KB)
📄
tlsv1_client.h
(2.39 KB)
📄
tlsv1_client_i.h
(2.73 KB)
📄
tlsv1_client_ocsp.c
(23.12 KB)
📄
tlsv1_client_read.c
(39.87 KB)
📄
tlsv1_client_write.c
(25.62 KB)
📄
tlsv1_common.c
(14.73 KB)
📄
tlsv1_common.h
(9.52 KB)
📄
tlsv1_cred.c
(32.12 KB)
📄
tlsv1_cred.h
(1.36 KB)
📄
tlsv1_record.c
(13.41 KB)
📄
tlsv1_record.h
(1.89 KB)
📄
tlsv1_server.c
(23.52 KB)
📄
tlsv1_server.h
(2.23 KB)
📄
tlsv1_server_i.h
(2.29 KB)
📄
tlsv1_server_read.c
(34.19 KB)
📄
tlsv1_server_write.c
(27.71 KB)
📄
x509v3.c
(53.69 KB)
📄
x509v3.h
(4.73 KB)
Editing: tlsv1_cred.h
/* * TLSv1 credentials * Copyright (c) 2006-2007, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef TLSV1_CRED_H #define TLSV1_CRED_H struct tlsv1_credentials { struct x509_certificate *trusted_certs; struct x509_certificate *cert; struct crypto_private_key *key; unsigned int cert_probe:1; unsigned int ca_cert_verify:1; unsigned int server_cert_only:1; u8 srv_cert_hash[32]; /* Diffie-Hellman parameters */ u8 *dh_p; /* prime */ size_t dh_p_len; u8 *dh_g; /* generator */ size_t dh_g_len; char *ocsp_stapling_response; char *ocsp_stapling_response_multi; }; struct tlsv1_credentials * tlsv1_cred_alloc(void); void tlsv1_cred_free(struct tlsv1_credentials *cred); int tlsv1_set_ca_cert(struct tlsv1_credentials *cred, const char *cert, const u8 *cert_blob, size_t cert_blob_len, const char *path); int tlsv1_set_cert(struct tlsv1_credentials *cred, const char *cert, const u8 *cert_blob, size_t cert_blob_len); int tlsv1_set_private_key(struct tlsv1_credentials *cred, const char *private_key, const char *private_key_passwd, const u8 *private_key_blob, size_t private_key_blob_len); int tlsv1_set_dhparams(struct tlsv1_credentials *cred, const char *dh_file, const u8 *dh_blob, size_t dh_blob_len); #endif /* TLSV1_CRED_H */
Upload File
Create Folder