mirror of
https://github.com/kakwa/uts-server
synced 2025-01-26 05:17:26 +01:00
source formatting
This commit is contained in:
parent
f22c4cfc87
commit
fa7dabcb81
@ -192,7 +192,7 @@ int create_response(rfc3161_context *ct, char *query, int query_len,
|
||||
goto end;
|
||||
}
|
||||
|
||||
FILE * stream = open_memstream((char **)resp, (size_t *)resp_size);
|
||||
FILE *stream = open_memstream((char **)resp, (size_t *)resp_size);
|
||||
ret = i2d_TS_RESP_fp(stream, ts_response);
|
||||
fflush(stream);
|
||||
fclose(stream);
|
||||
@ -214,7 +214,6 @@ end:
|
||||
uts_logger(ct, LOG_DEBUG, "TimeStamp OpenSSL status: |%s", bptr->data);
|
||||
BUF_MEM_free(bptr);
|
||||
|
||||
|
||||
long status = ASN1_INTEGER_get(ts_response->status_info->status);
|
||||
switch (status) {
|
||||
case TS_STATUS_GRANTED:
|
||||
@ -258,7 +257,7 @@ end:
|
||||
}
|
||||
err_code_prev = err_code;
|
||||
}
|
||||
//BIO_free_all(status_bio);
|
||||
// BIO_free_all(status_bio);
|
||||
TS_RESP_free(ts_response);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user