tlsv1_cred.h

Go to the documentation of this file.
00001 
00016 #ifndef TLSV1_CRED_H
00017 #define TLSV1_CRED_H
00018 
00019 struct tlsv1_credentials {
00020         struct x509_certificate *trusted_certs;
00021         struct x509_certificate *cert;
00022         struct crypto_private_key *key;
00023 
00024         /* Diffie-Hellman parameters */
00025         u8 *dh_p; /* prime */
00026         size_t dh_p_len;
00027         u8 *dh_g; /* generator */
00028         size_t dh_g_len;
00029 };
00030 
00031 
00032 struct tlsv1_credentials * tlsv1_cred_alloc(void);
00033 void tlsv1_cred_free(struct tlsv1_credentials *cred);
00034 int tlsv1_set_ca_cert(struct tlsv1_credentials *cred, const char *cert,
00035                       const u8 *cert_blob, size_t cert_blob_len,
00036                       const char *path);
00037 int tlsv1_set_cert(struct tlsv1_credentials *cred, const char *cert,
00038                    const u8 *cert_blob, size_t cert_blob_len);
00039 int tlsv1_set_private_key(struct tlsv1_credentials *cred,
00040                           const char *private_key,
00041                           const char *private_key_passwd,
00042                           const u8 *private_key_blob,
00043                           size_t private_key_blob_len);
00044 int tlsv1_set_dhparams(struct tlsv1_credentials *cred, const char *dh_file,
00045                        const u8 *dh_blob, size_t dh_blob_len);
00046 
00047 #endif /* TLSV1_CRED_H */
00048 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:16:53 2009 for hostapd by  doxygen 1.6.1