mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-27 15:43:42 +08:00
Add ocspget
This commit is contained in:
@@ -21,6 +21,9 @@ extern "C" {
|
||||
int http_parse_uri(const char *uri, char host[128], int *port, char path[256]);
|
||||
int http_parse_response(char *buf, size_t buflen, uint8_t **content, size_t *contentlen, size_t *left);
|
||||
int http_get(const char *uri, uint8_t *buf, size_t *contentlen, size_t buflen);
|
||||
int http_post(const char *uri, const char *content_type,
|
||||
const uint8_t *req, size_t reqlen,
|
||||
uint8_t *buf, size_t *contentlen, size_t buflen);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -316,6 +316,9 @@ int ocsp_verify(OCSP_SIGN_CTX *ctx,
|
||||
int ocsp_response_get_signer_cert(const uint8_t *resp, size_t resplen,
|
||||
const uint8_t *certs, size_t certs_len,
|
||||
const uint8_t **signer_cert, size_t *signer_cert_len);
|
||||
int ocsp_response_get_from_uri(const char *uri, size_t uri_len,
|
||||
const uint8_t *req, size_t req_len,
|
||||
uint8_t *resp, size_t *resp_len, size_t max_resp_len);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -18,7 +18,7 @@ extern "C" {
|
||||
|
||||
|
||||
#define GMSSL_VERSION_NUM 30200
|
||||
#define GMSSL_VERSION_STR "GmSSL 3.2.0-dev.1103"
|
||||
#define GMSSL_VERSION_STR "GmSSL 3.2.0-dev.1104"
|
||||
|
||||
int gmssl_version_num(void);
|
||||
const char *gmssl_version_str(void);
|
||||
|
||||
Reference in New Issue
Block a user