예제 #1
0
파일: tls.c 프로젝트: skompdev/FreeRDP
void tls_free(rdpTls* tls)
{
    if (tls)
    {
        if (tls->ssl)
        {
            SSL_free(tls->ssl);
            tls->ssl = NULL;
        }

        if (tls->ctx)
        {
            SSL_CTX_free(tls->ctx);
            tls->ctx = NULL;
        }

        if (tls->PublicKey)
        {
            free(tls->PublicKey);
            tls->PublicKey = NULL;
        }

        if (tls->Bindings)
        {
            free(tls->Bindings->Bindings);
            free(tls->Bindings);
            tls->Bindings = NULL;
        }

        certificate_store_free(tls->certificate_store);
        tls->certificate_store = NULL;

        free(tls);
    }
}
예제 #2
0
파일: tls.c 프로젝트: MrRecovery/FreeRDP
void tls_free(rdpTls* tls)
{
	if (!tls)
		return;

	if (tls->ctx)
	{
		SSL_CTX_free(tls->ctx);
		tls->ctx = NULL;
	}

	if (tls->PublicKey)
	{
		free(tls->PublicKey);
		tls->PublicKey = NULL;
	}

	if (tls->Bindings)
	{
		free(tls->Bindings->Bindings);
		free(tls->Bindings);
		tls->Bindings = NULL;
	}

	if (tls->certificate_store)
	{
		certificate_store_free(tls->certificate_store);
		tls->certificate_store = NULL;
	}

	free(tls);
}
예제 #3
0
void tls_free(rdpTls* tls)
{
	if (tls != NULL)
	{
		if (tls->ssl)
			SSL_free(tls->ssl);

		if (tls->ctx)
			SSL_CTX_free(tls->ctx);

		certificate_store_free(tls->certificate_store);

		xfree(tls);
	}
}
예제 #4
0
파일: tls.c 프로젝트: lordcrc/FreeRDP
void tls_free(rdpTls* tls)
{
	if (tls != NULL)
	{
		if (tls->ssl)
			SSL_free(tls->ssl);

		if (tls->ctx)
			SSL_CTX_free(tls->ctx);

		freerdp_blob_free(&tls->public_key);

		certificate_store_free(tls->certificate_store);

		xfree(tls);
	}
}
예제 #5
0
파일: tls.c 프로젝트: authentic8/FreeRDP
void tls_free(rdpTls* tls)
{
	if (tls != NULL)
	{
		if (tls->ssl)
			SSL_free(tls->ssl);

		if (tls->ctx)
			SSL_CTX_free(tls->ctx);

		if (tls->PublicKey)
			free(tls->PublicKey);

		if (tls->Bindings)
		{
			free(tls->Bindings->Bindings);
			free(tls->Bindings);
		}

		certificate_store_free(tls->certificate_store);

		free(tls);
	}
}