Exemplo n.º 1
0
static void _ssl_destroy(SSLTransport * ssl)
{
#ifdef DEBUG
	fprintf(stderr, "DEBUG: %s()\n", __func__);
#endif
	switch(ssl->mode)
	{
		case ATM_CLIENT:
			_destroy_client(ssl);
			break;
		case ATM_SERVER:
			_destroy_server(ssl);
			break;
	}
	if(ssl->ai != NULL)
		freeaddrinfo(ssl->ai);
	if(ssl->ssl_ctx != NULL)
		SSL_CTX_free(ssl->ssl_ctx);
	object_delete(ssl);
}
Exemplo n.º 2
0
void slp_service_agent::_de_init(void)
{
   if(_initialized.value() && _lib_handle)
   {
      if(_rep)
      {
	 _destroy_client(_rep);
	 _rep = 0;
      }

      try 
      {
	 System::unloadDynamicLibrary(_lib_handle);
	 _lib_handle = 0;
      }
      catch(...)
      {
	 _lib_handle = 0;
      }
   }
}