EVP_PKEY_CTX_get_group_name

Copy the elliptic-curve or DH group name from a key context into a caller buffer.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_CTX_get_group_name(
    EVP_PKEY_CTX* ctx,
    char* name,
    size_t namelen);

Return Value

1 on success, or a non-positive value on failure.

Parameters

NameDescription
ctxKey context whose group / curve name is queried.
nameDestination buffer for the NUL-terminated name.
namelenCapacity of name in bytes.