diff options
Diffstat (limited to 'freebsd/crypto/openssl/apps/s_cb.c')
-rw-r--r-- | freebsd/crypto/openssl/apps/s_cb.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/freebsd/crypto/openssl/apps/s_cb.c b/freebsd/crypto/openssl/apps/s_cb.c index ace2df34..24a99304 100644 --- a/freebsd/crypto/openssl/apps/s_cb.c +++ b/freebsd/crypto/openssl/apps/s_cb.c @@ -1,4 +1,8 @@ #include <machine/rtems-bsd-user-space.h> +#ifdef __rtems__ +#include <machine/rtems-bsd-program.h> +#include "rtems-bsd-openssl-namespace.h" +#endif /* __rtems__ */ /* * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. @@ -834,6 +838,9 @@ static void print_chain_flags(SSL *s, int flags) BIO_printf(bio_err, "not tested\n"); } +#ifdef __rtems__ + static int retry_cnt; +#endif /* __rtems__ */ /* * Very basic selection callback: just use any certificate chain reported as * valid. More sophisticated could prioritise according to local policy. @@ -843,7 +850,9 @@ static int set_cert_cb(SSL *ssl, void *arg) int i, rv; SSL_EXCERT *exc = arg; #ifdef CERT_CB_TEST_RETRY +#ifndef __rtems__ static int retry_cnt; +#endif /* __rtems__ */ if (retry_cnt < 5) { retry_cnt++; BIO_printf(bio_err, @@ -1481,3 +1490,6 @@ void print_ca_names(BIO *bio, SSL *s) BIO_write(bio, "\n", 1); } } +#ifdef __rtems__ +#include "rtems-bsd-openssl-s_cb-data.h" +#endif /* __rtems__ */ |