Go to the documentation of this file.
72 return (sk_X509_EXTENSION_num(
x));
96 n = sk_X509_EXTENSION_num(sk);
97 for (; lastpos <
n; lastpos++) {
98 ex = sk_X509_EXTENSION_value(sk, lastpos);
118 int n = sk_X509_EXTENSION_num(sk);
119 for (; lastpos <
n; lastpos++) {
130 if (
x == NULL ||
loc < 0 || sk_X509_EXTENSION_num(
x) <= (
size_t)
loc)
133 return sk_X509_EXTENSION_value(
x,
loc);
140 if (
x == NULL ||
loc < 0 || sk_X509_EXTENSION_num(
x) <= (
size_t)
loc)
142 ret = sk_X509_EXTENSION_delete(
x,
loc);
159 if ((sk = sk_X509_EXTENSION_new_null()) == NULL)
164 n = sk_X509_EXTENSION_num(sk);
172 if (!sk_X509_EXTENSION_insert(sk, new_ex,
loc))
181 sk_X509_EXTENSION_free(sk);
207 if ((
ex == NULL) || (*
ex == NULL)) {
222 if ((
ex != NULL) && (*
ex == NULL))
226 if ((
ex == NULL) || (
ret != *
ex))
233 if ((
ex == NULL) || (
obj == NULL))
OPENSSL_EXPORT const ASN1_OBJECT * obj
#define OPENSSL_PUT_ERROR(library, reason)
int X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, int nid, int lastpos)
OPENSSL_EXPORT X509_EXTENSION int loc
int X509_EXTENSION_set_data(X509_EXTENSION *ex, const ASN1_OCTET_STRING *data)
#define ASN1_OCTET_STRING_set
OPENSSL_EXPORT X509_EXTENSION * ex
int X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit)
X509_EXTENSION * X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc)
#define X509_R_UNKNOWN_NID
int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, const ASN1_OBJECT *obj, int lastpos)
#define ERR_R_PASSED_NULL_PARAMETER
X509_EXTENSION * X509_EXTENSION_create_by_OBJ(X509_EXTENSION **ex, const ASN1_OBJECT *obj, int crit, const ASN1_OCTET_STRING *data)
X509_EXTENSION * X509_EXTENSION_create_by_NID(X509_EXTENSION **ex, int nid, int crit, const ASN1_OCTET_STRING *data)
int X509_EXTENSION_get_critical(const X509_EXTENSION *ex)
#define X509_EXTENSION_new
#define X509_EXTENSION_free
ASN1_OBJECT * X509_EXTENSION_get_object(X509_EXTENSION *ex)
OPENSSL_EXPORT X509_EXTENSION * X509_EXTENSION_dup(X509_EXTENSION *ex)
UniquePtr< SSL_SESSION > ret
int X509_EXTENSION_set_object(X509_EXTENSION *ex, const ASN1_OBJECT *obj)
int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, int lastpos)
X509_EXTENSION * X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, int loc)
ASN1_OCTET_STRING * X509_EXTENSION_get_data(X509_EXTENSION *ex)
ASN1_OCTET_STRING * value
int X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x)
#define ERR_R_MALLOC_FAILURE
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:55