diff options
Diffstat (limited to 'freebsd/crypto/openssl/apps/enc.c')
-rw-r--r-- | freebsd/crypto/openssl/apps/enc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/freebsd/crypto/openssl/apps/enc.c b/freebsd/crypto/openssl/apps/enc.c index dd09cbac..285d6d50 100644 --- a/freebsd/crypto/openssl/apps/enc.c +++ b/freebsd/crypto/openssl/apps/enc.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. @@ -90,9 +94,14 @@ const OPTIONS enc_options[] = { {NULL} }; +#ifdef __rtems__ +static char buf[128]; +#endif /* __rtems__ */ int enc_main(int argc, char **argv) { +#ifndef __rtems__ static char buf[128]; +#endif /* __rtems__ */ static const char magic[] = "Salted__"; ENGINE *e = NULL; BIO *in = NULL, *out = NULL, *b64 = NULL, *benc = NULL, *rbio = @@ -675,3 +684,6 @@ static int set_hex(const char *in, unsigned char *out, int size) } return 1; } +#ifdef __rtems__ +#include "rtems-bsd-openssl-enc-data.h" +#endif /* __rtems__ */ |