1
0
mirror of https://github.com/kakwa/uts-server synced 2024-12-04 23:15:54 +01:00

format code

This commit is contained in:
kakwa 2016-12-04 13:39:27 +01:00
parent 9391f6348a
commit 158f49dc46
2 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,7 @@
#include <openssl/bn.h>
#include <openssl/err.h>
#include <openssl/opensslconf.h>
#include <openssl/opensslv.h>
#include <openssl/pem.h>
#include <openssl/rand.h>
#include <openssl/ts.h>
@ -11,12 +12,12 @@
#include <stdlib.h>
#include <string.h>
#include <sys/syslog.h>
#include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER < 0x10000000L
#error OpenSSL version too old
#endif
#if OPENSSL_VERSION_NUMBER < 0x10100000L && OPENSSL_VERSION_NUMBER >= 0x10000000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L && \
OPENSSL_VERSION_NUMBER >= 0x10000000L
#define OPENSSL_API_1_0
#endif
#if OPENSSL_VERSION_NUMBER >= 0x10100000L

View File

@ -306,8 +306,8 @@ end:
uts_logger(ct, LOG_DEBUG, "Request[%s], TimeStamp OpenSSL status: |%s",
*serial_id, bptr->data);
// emit logs according the return value
// and set the return code
// emit logs according the return value
// and set the return code
#ifdef OPENSSL_API_1_1
long status = ASN1_INTEGER_get(
TS_STATUS_INFO_get0_status(TS_RESP_get_status_info(ts_response)));