---
name: "libressl-DH_get_ex_new_index"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-DH_get_ex_new_index"
---

# libressl-DH\_get\_ex\_new\_index(3)

add application specific data to DH structures

## NAME

**DH\_get\_ex\_new\_index**, **DH\_set\_ex\_data**, **DH\_get\_ex\_data** – add application specific data to DH structures

## SYNOPSIS

Crypto Library (libcrypto, -lcrypto)

**#include \<openssl/dh.h\>**

*int*\

**DH\_get\_ex\_new\_index**(*long argl*, *void \*argp*, *CRYPTO\_EX\_new \*new\_func*, *CRYPTO\_EX\_dup \*dup\_func*, *CRYPTO\_EX\_free \*free\_func*);

*int*\

**DH\_set\_ex\_data**(*DH \*d*, *int idx*, *void \*arg*);

*char* *\**\

**DH\_get\_ex\_data**(*DH \*d*, *int idx*);

## DESCRIPTION

These functions handle application specific data in *DH* structures. Their usage is identical to that of RSA\_get\_ex\_new\_index(3), RSA\_set\_ex\_data(3), and RSA\_get\_ex\_data(3).

## SEE ALSO

DH\_new(3), RSA\_get\_ex\_new\_index(3)

## HISTORY

**DH\_get\_ex\_new\_index**(), **DH\_set\_ex\_data**(), and **DH\_get\_ex\_data**() first appeared in OpenSSL 0.9.5 and have been available since OpenBSD 2.7.
