mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-20 21:31:28 +02:00
BUG/MINOR: ocsp: prototype inconsistency
Inconsistencies between the .h and the .c can't be catched because the .h is not included in the .c. ocsp_update_init() does not have the right prototype and lacks a const attribute. Must be backported in all previous stable versions.
This commit is contained in:
parent
e0844a305c
commit
0224d60de6
@ -57,6 +57,7 @@
|
||||
#include <haproxy/shctx.h>
|
||||
#include <haproxy/ssl_ckch.h>
|
||||
#include <haproxy/ssl_ocsp-t.h>
|
||||
#include <haproxy/ssl_ocsp.h>
|
||||
#include <haproxy/ssl_sock.h>
|
||||
#include <haproxy/ssl_utils.h>
|
||||
#include <haproxy/task.h>
|
||||
@ -2075,7 +2076,7 @@ static int ocsp_update_parse_global_http_proxy(char **args, int section_type, st
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ocsp_update_init(void *value, char *buf, struct ckch_data *d, int cli, char *filename, int linenum, char **err)
|
||||
int ocsp_update_init(void *value, char *buf, struct ckch_data *d, int cli, const char *filename, int linenum, char **err)
|
||||
{
|
||||
int ocsp_update_mode = *(int *)value;
|
||||
int ret = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user