1=pod
2
3=head1 NAME
4
5ossl_cmp_asn1_octet_string_set1,
6ossl_cmp_asn1_octet_string_set1_bytes
7- ASN.1 octet string utility functions
8
9=head1 SYNOPSIS
10
11 #include "cmp_local.h"
12
13 int ossl_cmp_asn1_octet_string_set1(ASN1_OCTET_STRING **tgt,
14                                     const ASN1_OCTET_STRING *src);
15 int ossl_cmp_asn1_octet_string_set1_bytes(ASN1_OCTET_STRING **tgt,
16                                           const unsigned char *bytes, int len);
17
18=head1 DESCRIPTION
19
20ossl_cmp_asn1_octet_string_set1() frees any previous value of the variable
21referenced via the I<tgt> argument and assigns either a copy of
22the ASN1_OCTET_STRING given as the I<src> argument or NULL.
23
24ossl_cmp_asn1_octet_string_set1_bytes() frees any previous value of the variable
25referenced via the I<tgt> argument and assigns either a copy of the given byte
26string (with the given length) or NULL.
27
28=head1 RETURN VALUES
29
30All functions return 1 on success, 0 on error.
31
32=head1 HISTORY
33
34The OpenSSL CMP support was added in OpenSSL 3.0.
35
36=head1 COPYRIGHT
37
38Copyright 2007-2020 The OpenSSL Project Authors. All Rights Reserved.
39
40Licensed under the Apache License 2.0 (the "License").  You may not use
41this file except in compliance with the License.  You can obtain a copy
42in the file LICENSE in the source distribution or at
43L<https://www.openssl.org/source/license.html>.
44
45=cut
46