2019-08-10 14:07:22 +02:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
ossl_cmp_asn1_octet_string_set1,
|
2020-05-13 16:03:26 +02:00
|
|
|
ossl_cmp_asn1_octet_string_set1_bytes
|
|
|
|
- ASN.1 octet string utility functions
|
2019-08-10 14:07:22 +02:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2019-09-28 00:45:40 +02:00
|
|
|
#include "cmp_local.h"
|
2019-08-10 14:07:22 +02:00
|
|
|
|
|
|
|
int ossl_cmp_asn1_octet_string_set1(ASN1_OCTET_STRING **tgt,
|
|
|
|
const ASN1_OCTET_STRING *src);
|
|
|
|
int ossl_cmp_asn1_octet_string_set1_bytes(ASN1_OCTET_STRING **tgt,
|
|
|
|
const unsigned char *bytes, int len);
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
|
|
|
ossl_cmp_asn1_octet_string_set1() frees any previous value of the variable
|
2019-09-27 13:26:22 +02:00
|
|
|
referenced via the I<tgt> argument and assigns either a copy of
|
|
|
|
the ASN1_OCTET_STRING given as the I<src> argument or NULL.
|
2019-08-10 14:07:22 +02:00
|
|
|
|
|
|
|
ossl_cmp_asn1_octet_string_set1_bytes() frees any previous value of the variable
|
2019-09-27 13:26:22 +02:00
|
|
|
referenced via the I<tgt> argument and assigns either a copy of the given byte
|
2020-05-13 16:03:26 +02:00
|
|
|
string (with the given length) or NULL.
|
2019-08-10 14:07:22 +02:00
|
|
|
|
|
|
|
=head1 RETURN VALUES
|
|
|
|
|
2020-05-13 16:03:26 +02:00
|
|
|
All functions return 1 on success, 0 on error.
|
2019-08-10 14:07:22 +02:00
|
|
|
|
|
|
|
=head1 HISTORY
|
|
|
|
|
|
|
|
The OpenSSL CMP support was added in OpenSSL 3.0.
|
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
2020-04-23 13:55:52 +01:00
|
|
|
Copyright 2007-2020 The OpenSSL Project Authors. All Rights Reserved.
|
2019-08-10 14:07:22 +02:00
|
|
|
|
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
|
|
this file except in compliance with the License. You can obtain a copy
|
|
|
|
in the file LICENSE in the source distribution or at
|
|
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
|
|
|
|
=cut
|