Lines Matching refs:FIELD
23 #define DEFINE_OSSL_CMP_CTX_get0(FIELD, TYPE) \ argument
24 DEFINE_OSSL_CMP_CTX_get0_NAME(FIELD, FIELD, TYPE)
25 #define DEFINE_OSSL_CMP_CTX_get0_NAME(NAME, FIELD, TYPE) \ argument
32 return ctx->FIELD; \
40 #define DEFINE_OSSL_set0(PREFIX, FIELD, TYPE) \ in DEFINE_OSSL_CMP_CTX_get0_NAME() argument
41 DEFINE_OSSL_set0_NAME(PREFIX, FIELD, FIELD, TYPE) in DEFINE_OSSL_CMP_CTX_get0_NAME()
42 #define DEFINE_OSSL_set0_NAME(PREFIX, NAME, FIELD, TYPE) \ in DEFINE_OSSL_CMP_CTX_get0_NAME() argument
49 TYPE##_free(ctx->FIELD); \ in DEFINE_OSSL_CMP_CTX_get0_NAME()
50 ctx->FIELD = val; \ in DEFINE_OSSL_CMP_CTX_get0_NAME()
255 #define DEFINE_OSSL_set(PREFIX, FIELD, TYPE) \ argument
256 int PREFIX##_set_##FIELD(OSSL_CMP_CTX *ctx, TYPE val) \
262 ctx->FIELD = val; \
268 #define DEFINE_OSSL_get(PREFIX, FIELD, TYPE, ERR_RET) \ in DEFINE_OSSL_set() argument
269 TYPE PREFIX##_get_##FIELD(const OSSL_CMP_CTX *ctx) \ in DEFINE_OSSL_set()
275 return ctx->FIELD; \ in DEFINE_OSSL_set()
454 #define DEFINE_OSSL_CMP_CTX_get1_certs(FIELD) \ argument
455 STACK_OF(X509) *OSSL_CMP_CTX_get1_##FIELD(const OSSL_CMP_CTX *ctx) \
461 return X509_chain_up_ref(ctx->FIELD); \
467 #define DEFINE_OSSL_set1_certs(PREFIX, FIELD) \ argument
468 int PREFIX##_set1_##FIELD(OSSL_CMP_CTX *ctx, STACK_OF(X509) *certs) \
474 OSSL_STACK_OF_X509_free(ctx->FIELD); \
475 ctx->FIELD = NULL; \
476 return certs == NULL || (ctx->FIELD = X509_chain_up_ref(certs)) != NULL; \
566 #define DEFINE_OSSL_CMP_CTX_set1(FIELD, TYPE) /* this uses _dup */ \ in DEFINE_OSSL_set1_certs() argument
567 int OSSL_CMP_CTX_set1_##FIELD(OSSL_CMP_CTX *ctx, const TYPE *val) \ in DEFINE_OSSL_set1_certs()
578 TYPE##_free(ctx->FIELD); \ in DEFINE_OSSL_set1_certs()
579 ctx->FIELD = val_dup; \ in DEFINE_OSSL_set1_certs()
586 #define DEFINE_OSSL_set1_up_ref(PREFIX, FIELD, TYPE) \ argument
587 int PREFIX##_set1_##FIELD(OSSL_CMP_CTX *ctx, TYPE *val) \
601 TYPE##_free(ctx->FIELD); \
602 ctx->FIELD = val; \
800 #define DEFINE_set1_ASN1_OCTET_STRING(PREFIX, FIELD) \ argument
801 int PREFIX##_set1_##FIELD(OSSL_CMP_CTX *ctx, const ASN1_OCTET_STRING *id) \
807 return ossl_cmp_asn1_octet_string_set1(&ctx->FIELD, id); \