ASN1_item_new.pod 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. =pod
  2. =head1 NAME
  3. ASN1_item_new_ex, ASN1_item_new
  4. - create new ASN.1 values
  5. =head1 SYNOPSIS
  6. #include <openssl/asn1.h>
  7. ASN1_VALUE *ASN1_item_new_ex(const ASN1_ITEM *it, OSSL_LIB_CTX *libctx,
  8. const char *propq);
  9. ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it);
  10. =head1 DESCRIPTION
  11. ASN1_item_new_ex() creates a new B<ASN1_VALUE> structure based on the
  12. B<ASN1_ITEM> template given in the I<it> parameter. If any algorithm fetches are
  13. required during the process then they will use the B<OSSL_LIB_CTX> provided in
  14. the I<libctx> parameter and the property query string in I<propq>. See
  15. L<crypto(7)/ALGORITHM FETCHING> for more information about algorithm fetching.
  16. ASN1_item_new() is the same as ASN1_item_new_ex() except that the default
  17. B<OSSL_LIB_CTX> is used (i.e. NULL) and with a NULL property query string.
  18. =head1 RETURN VALUES
  19. ASN1_item_new_ex() and ASN1_item_new() return a pointer to the newly created
  20. B<ASN1_VALUE> or NULL on error.
  21. =head1 HISTORY
  22. The function ASN1_item_new_ex() was added in OpenSSL 3.0.
  23. =head1 COPYRIGHT
  24. Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
  25. Licensed under the Apache License 2.0 (the "License"). You may not use
  26. this file except in compliance with the License. You can obtain a copy
  27. in the file LICENSE in the source distribution or at
  28. L<https://www.openssl.org/source/license.html>.
  29. =cut