=pod =head1 NAME X509_get_serialNumber, X509_set_serialNumber - get or set certificate serial number =head1 SYNOPSIS #include ASN1_INTEGER *X509_get_serialNumber(X509 *x); int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial); =head1 DESCRIPTION X509_get_serialNumber() returns the serial number of certificate B as an B structure which can be examined or initialised. The value returned is an internal pointer which B be freed up after the call. X509_set_serialNumber() sets the serial number of certificate B to B. A copy of the serial number is used internally so B should be freed up after use. =head1 RETURN VALUES X509_get_serialNumber() returns an B structure. X509_set_serialNumber() returns 1 for success and 0 for failure. =head1 SEE ALSO L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L =head1 HISTORY X509_get_serialNumber() and X509_set_serialNumber() are available in all versions of OpenSSL. =head1 COPYRIGHT Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. Licensed under the OpenSSL license (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. =cut