tls_none.c File Reference

WPA Supplicant / SSL/TLS interface functions for no TLS case. More...

#include "includes.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 <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 tls_none.c.


Function Documentation

void tls_deinit ( void *  tls_ctx  ) 

Deinitialize TLS library.

Parameters:
tls_ctx TLS context data from tls_init()

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 26 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 21 of file tls_none.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

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