---
name: "SSL_CONF_CTX_new"
section: "3ssl"
platform: "linux"
package: "openssl"
version: "3.6.5-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/SSL_CONF_CTX_new"
---

# SSL\_CONF\_CTX\_new(3ssl)

SSL configuration allocation functions

## NAME

SSL\_CONF\_CTX\_new, SSL\_CONF\_CTX\_free - SSL configuration allocation functions

## SYNOPSIS

```
 #include <openssl/ssl.h>
 SSL_CONF_CTX *SSL_CONF_CTX_new(void);
 void SSL_CONF_CTX_free(SSL_CONF_CTX *cctx);
```

## DESCRIPTION

The function **SSL\_CONF\_CTX\_new()** allocates and initialises an **SSL\_CONF\_CTX** structure for use with the SSL\_CONF functions.

The function **SSL\_CONF\_CTX\_free()** frees up the context **cctx**. If **cctx** is NULL nothing is done.

## RETURN VALUES

**SSL\_CONF\_CTX\_new()** returns either the newly allocated **SSL\_CONF\_CTX** structure or **NULL** if an error occurs.

**SSL\_CONF\_CTX\_free()** does not return a value.

## SEE ALSO

[**ssl**(7)](/ssl/7.md), **SSL\_CONF\_CTX\_set\_flags**(3), **SSL\_CONF\_CTX\_set\_ssl\_ctx**(3), **SSL\_CONF\_CTX\_set1\_prefix**(3), **SSL\_CONF\_cmd**(3), **SSL\_CONF\_cmd\_argv**(3)

## HISTORY

These functions were added in OpenSSL 1.0.2.

## COPYRIGHT

Copyright 2012-2016 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License").  You may not use this file except in compliance with the License.  You can obtain a copy in the file LICENSE in the source distribution or at \<https://www.openssl.org/source/license.html\>.
