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