ASN1_STRING_new.pod 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. =pod
  2. =head1 NAME
  3. ASN1_STRING_new, ASN1_STRING_type_new, ASN1_STRING_free -
  4. ASN1_STRING allocation functions
  5. =head1 SYNOPSIS
  6. #include <openssl/asn1.h>
  7. ASN1_STRING *ASN1_STRING_new(void);
  8. ASN1_STRING *ASN1_STRING_type_new(int type);
  9. void ASN1_STRING_free(ASN1_STRING *a);
  10. =head1 DESCRIPTION
  11. ASN1_STRING_new() returns an allocated B<ASN1_STRING> structure. Its type
  12. is undefined.
  13. ASN1_STRING_type_new() returns an allocated B<ASN1_STRING> structure of
  14. type I<type>.
  15. ASN1_STRING_free() frees up I<a>.
  16. If I<a> is NULL nothing is done.
  17. =head1 NOTES
  18. Other string types call the B<ASN1_STRING> functions. For example
  19. ASN1_OCTET_STRING_new() calls ASN1_STRING_type(V_ASN1_OCTET_STRING).
  20. =head1 RETURN VALUES
  21. ASN1_STRING_new() and ASN1_STRING_type_new() return a valid
  22. B<ASN1_STRING> structure or NULL if an error occurred.
  23. ASN1_STRING_free() does not return a value.
  24. =head1 SEE ALSO
  25. L<ERR_get_error(3)>
  26. =head1 COPYRIGHT
  27. Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved.
  28. Licensed under the Apache License 2.0 (the "License"). You may not use
  29. this file except in compliance with the License. You can obtain a copy
  30. in the file LICENSE in the source distribution or at
  31. L<https://www.openssl.org/source/license.html>.
  32. =cut