version 1.4, 2015/07/20 21:52:07 |
version 1.5, 2015/09/10 06:36:45 |
|
|
#define COOKIE_SECRET_LENGTH 16 |
#define COOKIE_SECRET_LENGTH 16 |
|
|
int verify_depth = 0; |
int verify_depth = 0; |
int verify_error = X509_V_OK; |
|
int verify_return_error = 0; |
int verify_return_error = 0; |
unsigned char cookie_secret[COOKIE_SECRET_LENGTH]; |
unsigned char cookie_secret[COOKIE_SECRET_LENGTH]; |
int cookie_initialized = 0; |
int cookie_initialized = 0; |
|
|
if (verify_depth >= depth) { |
if (verify_depth >= depth) { |
if (!verify_return_error) |
if (!verify_return_error) |
ok = 1; |
ok = 1; |
verify_error = X509_V_OK; |
|
} else { |
} else { |
ok = 0; |
ok = 0; |
verify_error = X509_V_ERR_CERT_CHAIN_TOO_LONG; |
|
} |
} |
} |
} |
switch (err) { |
switch (err) { |