X509_ALGOR_DUP(3ossl)
π NAME π
okay so bestie, welcome to the X509_ALGOR_DUP(3ossl) page from OpenSSL β these are literally the AlgorithmIdentifier functions: X509_ALGOR_dup, X509_ALGOR_set0, X509_ALGOR_get0, X509_ALGOR_set_md, X509_ALGOR_cmp, and X509_ALGOR_copy. periodt. π
β¨ SYNOPSIS β¨
#include <openssl/x509.h>
X509_ALGOR *X509_ALGOR_dup(X509_ALGOR *alg);
int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval);
void X509_ALGOR_get0(const ASN1_OBJECT **paobj, int *pptype,
const void **ppval, const X509_ALGOR *alg);
void X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md);
int X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b);
int X509_ALGOR_copy(X509_ALGOR *dest, const X509_ALGOR *src);
π DESCRIPTION π
X509_ALGOR_dup()β returns a copy ofalg. tiny clone energy, no cap. β¨X509_ALGOR_set0()β sets the algorithm OID ofalgtoaobjand the associated parameter type toptypewith valuepval. IfptypeisV_ASN1_UNDEF, the parameter is omitted; otherwiseptypeandpvalhave the same meaning as the type and value parameters toASN1_TYPE_set(). All the supplied parameters are used internally, so they must NOT be freed after this call succeeded; otherwise ownership remains with the caller andalgremains untouched. πX509_ALGOR_get0()β the inverse ofX509_ALGOR_set0(): it returns the algorithm OID in*paobjand the associated parameter in*pptypeand*ppvalfrom theAlgorithmIdentifieralg. π¦X509_ALGOR_set_md()β sets theAlgorithmIdentifieralgto appropriate values for the message digestmd. πΈX509_ALGOR_cmp()β comparesaandband returns0if they have identical encodings and nonzero otherwise. πX509_ALGOR_copy()β copies the source values into thedeststructs; making a duplicate of each (and it frees anything pointed to from within*dest). π«Ά
π«Ά RETURN VALUES π«Ά
X509_ALGOR_dup()β returns a validX509_ALGORstructure orNULLif an error occurred. πX509_ALGOR_set0()andX509_ALGOR_copy()β return1on success or0on error. π₯X509_ALGOR_get0()andX509_ALGOR_set_md()β return no values. βX509_ALGOR_cmp()β returns0if the two parameters have identical encodings and nonzero otherwise. π
πΈ HISTORY πΈ
X509_ALGOR_copy() was added in 1.1.1e. iconic. π
π COPYRIGHT π
Copyright 2002-2022 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>.
π okay that's the whole page, bestie β OpenSSL 3.5.6, dated 2026-04-07, X509_ALGOR_DUP(3ossl), out. ππ«Ά
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms