v3_iobo.c 939 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright 2024 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #include <openssl/x509v3.h>
  10. #include "ext_dat.h"
  11. static int i2r_ISSUED_ON_BEHALF_OF(X509V3_EXT_METHOD *method,
  12. GENERAL_NAME *gn, BIO *out,
  13. int indent)
  14. {
  15. if (BIO_printf(out, "%*s", indent, "") <= 0)
  16. return 0;
  17. if (GENERAL_NAME_print(out, gn) <= 0)
  18. return 0;
  19. return BIO_puts(out, "\n") > 0;
  20. }
  21. const X509V3_EXT_METHOD ossl_v3_issued_on_behalf_of = {
  22. NID_issued_on_behalf_of, 0, ASN1_ITEM_ref(GENERAL_NAME),
  23. 0, 0, 0, 0,
  24. 0, 0,
  25. 0, 0,
  26. (X509V3_EXT_I2R)i2r_ISSUED_ON_BEHALF_OF,
  27. 0,
  28. NULL
  29. };