tls_none.c File Reference
WPA Supplicant / SSL/TLS interface functions for no TLS case. More...
#include <stdlib.h>
#include <stdio.h>
#include "common.h"
#include "tls.h"
Include dependency graph for tls_none.c:
Go to the source code of this file.
|
Functions |
void * | tls_init (const struct tls_config *conf) |
| Initialize TLS library.
|
void | tls_deinit (void *ssl_ctx) |
| Deinitialize TLS library.
|
Detailed Description
WPA Supplicant / SSL/TLS interface functions for no TLS case.
- Copyright
- Copyright (c) 2004, Jouni Malinen <[email protected]>
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 tls_none.c.
Function Documentation
void tls_deinit |
( |
void * |
tls_ctx |
) |
|
|
|
Deinitialize TLS library.
- Parameters:
-
Called once during program shutdown and once for each RSN pre-authentication session. If global library deinitialization is needed (i.e., one that is shared between both authentication types), the TLS library wrapper should maintain a reference counter and do global deinitialization only when moving from 1 to 0 references.
Definition at line 27 of file tls_none.c. |
void* tls_init |
( |
const struct tls_config * |
conf |
) |
|
|
|
Initialize TLS library.
- Parameters:
-
| conf | Configuration data for TLS library |
- Returns:
- Context data to be used as tls_ctx in calls to other functions, or NULL on failure.
Called once during program startup and once for each RSN pre-authentication session. In other words, there can be two concurrent TLS contexts. If global library initialization is needed (i.e., one that is shared between both authentication types), the TLS library wrapper should maintain a reference counter and do global initialization only when moving from 0 to 1 reference.
Definition at line 22 of file tls_none.c. |
Generated on Sat May 6 21:18:58 2006 for wpa_supplicant by
1.4.2