- Changed int32_t to size_t
- Removed some unused variables
- Added missing include files
- changed ordering to ensure variable declarations are before asserts
Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Tested-by: Samuli Seppänen <samuli@openvpn.net>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
void
prng_bytes (uint8_t *output, int len)
{
- static int32_t processed = 0;
+ static size_t processed = 0;
if (nonce_md)
{
- md_ctx_t ctx;
const int md_size = md_kt_size (nonce_md);
while (len > 0)
{
struct tls_root_ctx * const ssl_ctx)
{
int ret = 1;
- pkcs11_context pkcs11_ctx;
ASSERT (NULL != ssl_ctx);
#include "memdbg.h"
#include "ssl_backend.h"
#include "ssl_common.h"
+#include "base64.h"
#ifdef ENABLE_CRYPTOAPI
#include "cryptoapi.h"
static int
tls_ctx_read_certificate_file(SSL_CTX *ctx, const char *file, X509 **x509)
{
- int j;
BIO *in;
int ret=0;
X509 *x=NULL;
#endif
)
{
- ASSERT(NULL != ctx);
-
int status;
+ ASSERT(NULL != ctx);
+
#if ENABLE_INLINE_FILES
if (!strcmp (priv_key_file, INLINE_FILE_TAG) && priv_key_file_inline)
{
const char *ca_path, bool tls_server
)
{
- int status;
-
if (ca_path)
msg(M_FATAL, "ERROR: PolarSSL cannot handle the capath directive");
#include "ssl_verify_backend.h"
#include "ssl_openssl.h"
#include <openssl/x509v3.h>
+#include <openssl/err.h>
int
verify_callback (int preverify_ok, X509_STORE_CTX * ctx)
void
x509_setenv (struct env_set *es, int cert_depth, x509_cert_t *cert)
{
- int i, ret;
+ int i;
unsigned char c;
const x509_name *name;
char s[128];