ASN1_STRING_new.pod 927 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 B<type>.
  15. ASN1_STRING_free() frees up B<a>.
  16. =head1 NOTES
  17. Other string types call the B<ASN1_STRING> functions. For example
  18. ASN1_OCTET_STRING_new() calls ASN1_STRING_type(V_ASN1_OCTET_STRING).
  19. =head1 RETURN VALUES
  20. ASN1_STRING_new() and ASN1_STRING_type_new() return a valid
  21. ASN1_STRING structure or B<NULL> if an error occurred.
  22. ASN1_STRING_free() does not return a value.
  23. =head1 SEE ALSO
  24. L<ERR_get_error(3)|ERR_get_error(3)>
  25. =head1 HISTORY
  26. TBA
  27. =cut