ossl_cmp_asn1_octet_string_set1.pod 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. =pod
  2. =head1 NAME
  3. ossl_cmp_asn1_octet_string_set1,
  4. ossl_cmp_asn1_octet_string_set1_bytes
  5. - ASN.1 octet string utility functions
  6. =head1 SYNOPSIS
  7. #include "cmp_local.h"
  8. int ossl_cmp_asn1_octet_string_set1(ASN1_OCTET_STRING **tgt,
  9. const ASN1_OCTET_STRING *src);
  10. int ossl_cmp_asn1_octet_string_set1_bytes(ASN1_OCTET_STRING **tgt,
  11. const unsigned char *bytes, int len);
  12. =head1 DESCRIPTION
  13. ossl_cmp_asn1_octet_string_set1() frees any previous value of the variable
  14. referenced via the I<tgt> argument and assigns either a copy of
  15. the ASN1_OCTET_STRING given as the I<src> argument or NULL.
  16. ossl_cmp_asn1_octet_string_set1_bytes() frees any previous value of the variable
  17. referenced via the I<tgt> argument and assigns either a copy of the given byte
  18. string (with the given length) or NULL.
  19. =head1 RETURN VALUES
  20. All functions return 1 on success, 0 on error.
  21. =head1 HISTORY
  22. The OpenSSL CMP support was added in OpenSSL 3.0.
  23. =head1 COPYRIGHT
  24. Copyright 2007-2020 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