1=pod 2 3=head1 NAME 4 5ossl_DER_w_begin_sequence, ossl_DER_w_end_sequence 6- internal DER writers for DER constructed elements 7 8=head1 SYNOPSIS 9 10 #include "internal/der.h" 11 12 int ossl_DER_w_begin_sequence(WPACKET *pkt, int tag); 13 int ossl_DER_w_end_sequence(WPACKET *pkt, int tag); 14 15=head1 DESCRIPTION 16 17All functions described here are wrappers for constructed structures, 18i.e. the ASN.1 SEQUENCE, SET and CHOICE specifications. They all come 19in pairs, as noted by the function names containing the words C<begin> 20and B<end>. 21 22When using these, special care must be taken to ensure that the ASN.1 tag 23value I<tag> is the same in the matching C<begin> and C<end> function calls. 24 25ossl_DER_w_begin_sequence() and ossl_DER_w_end_sequence() begins and ends a 26SEQUENCE. 27 28=head1 RETURN VALUES 29 30All the functions return 1 on success and 0 on failure. Failure may 31mean that the buffer held by the I<pkt> is too small, but may also 32mean that the values given to the functions are invalid, such as the provided 33I<tag> value being too large for the implementation. 34 35=head1 SEE ALSO 36 37L<DERlib(7)> 38 39=head1 COPYRIGHT 40 41Copyright 2020 The OpenSSL Project Authors. All Rights Reserved. 42 43Licensed under the Apache License 2.0 (the "License"). You may not use 44this file except in compliance with the License. You can obtain a copy 45in the file LICENSE in the source distribution or at 46L<https://www.openssl.org/source/license.html>. 47 48=cut 49