1=pod
2
3=head1 NAME
4
5ossl_serial_number_print
6- Print a CertificateSerialNumber
7
8=head1 SYNOPSIS
9
10 #include <crypto/x509.h>
11
12 int ossl_serial_number_print(BIO *out, const ASN1_INTEGER *bs, int indent);
13
14=head1 DESCRIPTION
15
16This function writes a certificate serial number I<bs> to BIO I<out> in decimal if the serial
17number can be read into a long int, as well as hexadecimal. It notifies the
18user of negative serial numbers, and handles wrapping of huge serial numbers.
19The output is written to a newline and indented by I<indent> spaces if the
20serial number cannot be read into a long int.
21
22If the serial number fits into a long int, it is printed on the same line as
23whatever precedes it, after a single SPACE character.
24
25=head1 RETURN VALUES
26
27This function returns 0 on success and -1 on failure.
28
29=head1 COPYRIGHT
30
31Copyright 2024 The OpenSSL Project Authors. All Rights Reserved.
32
33Licensed under the Apache License 2.0 (the "License").  You may not use
34this file except in compliance with the License.  You can obtain a copy
35in the file LICENSE in the source distribution or at
36L<https://www.openssl.org/source/license.html>.
37
38=cut
39