diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-11-19 15:41:40 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-11-19 15:41:40 +0000 |
commit | 9549e0518dc38697b5035adbe890644950535e18 (patch) | |
tree | 24314c51a057b27474595cd03f24d1ebff2a793d /src/include | |
parent | 46e49260b35a2a39bbb92f44ceb598ab2db94d6a (diff) | |
download | s6-networking-9549e0518dc38697b5035adbe890644950535e18.tar.xz |
Add sbearssl_*_set_tain(n)_g convenience macros
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/s6-networking/sbearssl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/s6-networking/sbearssl.h b/src/include/s6-networking/sbearssl.h index 4e4dca6..2d46261 100644 --- a/src/include/s6-networking/sbearssl.h +++ b/src/include/s6-networking/sbearssl.h @@ -61,8 +61,12 @@ struct sbearssl_x509_small_context_s extern int sbearssl_x509_minimal_set_tai (br_x509_minimal_context *, tai const *) ; #define sbearssl_x509_minimal_set_tain(ctx, a) sbearssl_x509_minimal_set_tai(ctx, tain_secp(a)) +#define sbearssl_x509_minimal_set_tai_g(ctx) sbearssl_x509_minimal_set_tain((ctx), &STAMP) +#define sbearssl_x509_minimal_set_tain_g(ctx) sbearssl_x509_minimal_set_tain((ctx), &STAMP) #define sbearssl_x509_small_set_tai(ctx, t) sbearssl_x509_minimal_set_tai(&(ctx)->minimal, t) #define sbearssl_x509_small_set_tain(ctx, a) sbearssl_x509_small_set_tai(ctx, tain_secp(a)) +#define sbearssl_x509_small_set_tai_g(ctx) sbearssl_x509_small_set_tain((ctx), &STAMP) +#define sbearssl_x509_small_set_tain_g(ctx) sbearssl_x509_small_set_tain((ctx), &STAMP) extern br_x509_class const sbearssl_x509_small_vtable ; extern void sbearssl_x509_small_init_full (sbearssl_x509_small_context *, br_x509_trust_anchor *, size_t, sbearssl_dn *, uint8_t *, char *) ; |