mirror of
https://github.com/kakwa/uts-server
synced 2024-11-12 12:38:55 +01:00
format code
This commit is contained in:
parent
5384ccd45e
commit
fe51b57adc
@ -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
|
||||
|
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user