|
wpa_supplicant / hostapd 2.0
|
00001 00010 #ifndef TLSV1_CRED_H 00011 #define TLSV1_CRED_H 00012 00013 struct tlsv1_credentials { 00014 struct x509_certificate *trusted_certs; 00015 struct x509_certificate *cert; 00016 struct crypto_private_key *key; 00017 00018 /* Diffie-Hellman parameters */ 00019 u8 *dh_p; /* prime */ 00020 size_t dh_p_len; 00021 u8 *dh_g; /* generator */ 00022 size_t dh_g_len; 00023 }; 00024 00025 00026 struct tlsv1_credentials * tlsv1_cred_alloc(void); 00027 void tlsv1_cred_free(struct tlsv1_credentials *cred); 00028 int tlsv1_set_ca_cert(struct tlsv1_credentials *cred, const char *cert, 00029 const u8 *cert_blob, size_t cert_blob_len, 00030 const char *path); 00031 int tlsv1_set_cert(struct tlsv1_credentials *cred, const char *cert, 00032 const u8 *cert_blob, size_t cert_blob_len); 00033 int tlsv1_set_private_key(struct tlsv1_credentials *cred, 00034 const char *private_key, 00035 const char *private_key_passwd, 00036 const u8 *private_key_blob, 00037 size_t private_key_blob_len); 00038 int tlsv1_set_dhparams(struct tlsv1_credentials *cred, const char *dh_file, 00039 const u8 *dh_blob, size_t dh_blob_len); 00040 00041 #endif /* TLSV1_CRED_H */ 00042
1.7.3