-/* crypto/ts/ts_lib.c */
/*
* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL project
* 2002.
#include <openssl/ts.h>
#include "ts_lcl.h"
-/* Local function declarations. */
-
-/* Function definitions. */
-
int TS_ASN1_INTEGER_print_bio(BIO *bio, const ASN1_INTEGER *num)
{
BIGNUM *num_bn;
char *hex;
num_bn = BN_new();
- if (!num_bn)
+ if (num_bn == NULL)
return -1;
ASN1_INTEGER_to_BN(num, num_bn);
if ((hex = BN_bn2hex(num_bn))) {