summaryrefslogtreecommitdiffstats
path: root/freebsd/crypto/openssl/apps/passwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/crypto/openssl/apps/passwd.c')
-rw-r--r--freebsd/crypto/openssl/apps/passwd.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/freebsd/crypto/openssl/apps/passwd.c b/freebsd/crypto/openssl/apps/passwd.c
index 81d99190..d2bc7cfd 100644
--- a/freebsd/crypto/openssl/apps/passwd.c
+++ b/freebsd/crypto/openssl/apps/passwd.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 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
@@ -82,6 +86,9 @@ const OPTIONS passwd_options[] = {
{NULL}
};
+#ifdef __rtems__
+static char *passwds_static[2] = { NULL, NULL };
+#endif /* __rtems__ */
int passwd_main(int argc, char **argv)
{
BIO *in = NULL;
@@ -235,7 +242,9 @@ int passwd_main(int argc, char **argv)
if (1) {
#ifndef OPENSSL_NO_UI_CONSOLE
/* build a null-terminated list */
+#ifndef __rtems__
static char *passwds_static[2] = { NULL, NULL };
+#endif /* __rtems__ */
passwds = passwds_static;
if (in == NULL) {
@@ -853,3 +862,6 @@ static int do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p,
end:
return 0;
}
+#ifdef __rtems__
+#include "rtems-bsd-openssl-passwd-data.h"
+#endif /* __rtems__ */