tlsv1_cred.h File Reference

TLSv1 credentials. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tlsv1_credentials

Functions

struct tlsv1_credentialstlsv1_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)
 Set trusted CA certificate(s).
int tlsv1_set_cert (struct tlsv1_credentials *cred, const char *cert, const u8 *cert_blob, size_t cert_blob_len)
 Set certificate.
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)
 Set private key.
int tlsv1_set_dhparams (struct tlsv1_credentials *cred, const char *dh_file, const u8 *dh_blob, size_t dh_blob_len)
 Set Diffie-Hellman parameters.

Detailed Description

TLSv1 credentials.

Copyright
Copyright (c) 2006-2007, Jouni Malinen <j@w1.fi>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.

Definition in file tlsv1_cred.h.


Function Documentation

int tlsv1_set_ca_cert ( struct tlsv1_credentials cred,
const char *  cert,
const u8 *  cert_blob,
size_t  cert_blob_len,
const char *  path 
)

Set trusted CA certificate(s).

Parameters:
cred TLSv1 credentials from tlsv1_cred_alloc()
cert File or reference name for X.509 certificate in PEM or DER format
cert_blob cert as inlined data or NULL if not used
cert_blob_len ca_cert_blob length
path Path to CA certificates (not yet supported)
Returns:
0 on success, -1 on failure

Definition at line 185 of file tlsv1_cred.c.

Here is the call graph for this function:

int tlsv1_set_cert ( struct tlsv1_credentials cred,
const char *  cert,
const u8 *  cert_blob,
size_t  cert_blob_len 
)

Set certificate.

Parameters:
cred TLSv1 credentials from tlsv1_cred_alloc()
cert File or reference name for X.509 certificate in PEM or DER format
cert_blob cert as inlined data or NULL if not used
cert_blob_len cert_blob length
Returns:
0 on success, -1 on failure

Definition at line 213 of file tlsv1_cred.c.

int tlsv1_set_dhparams ( struct tlsv1_credentials cred,
const char *  dh_file,
const u8 *  dh_blob,
size_t  dh_blob_len 
)

Set Diffie-Hellman parameters.

Parameters:
cred TLSv1 credentials from tlsv1_cred_alloc()
dh_file File or reference name for the DH params in PEM or DER format
dh_blob DH params as inlined data or NULL if not used
dh_blob_len dh_blob length
Returns:
0 on success, -1 on failure

Definition at line 474 of file tlsv1_cred.c.

Here is the call graph for this function:

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 
)

Set private key.

Parameters:
cred TLSv1 credentials from tlsv1_cred_alloc()
private_key File or reference name for the key in PEM or DER format
private_key_passwd Passphrase for decrypted private key, NULL if no passphrase is used.
private_key_blob private_key as inlined data or NULL if not used
private_key_blob_len private_key_blob length
Returns:
0 on success, -1 on failure

Definition at line 308 of file tlsv1_cred.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

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