#include <string.h>
#include <openssl/opensslconf.h>
#include <openssl/err.h>
-#include "../apps/apps.h"
+#include "apps.h"
#include "testutil.h"
/* apps/apps.c depend on these */
char *default_config_file = NULL;
-#ifndef OPENSSL_NO_UI
-# include <openssl/ui.h>
+#include <openssl/ui.h>
/* Old style PEM password callback */
static int test_pem_password_cb(char *buf, int size, int rwflag, void *userdata)
{
OPENSSL_strlcpy(buf, (char *)userdata, (size_t)size);
- return 1;
+ return strlen(buf);
}
/*
return ok;
}
-#endif
-
void register_tests(void)
{
-#ifndef OPENSSL_NO_UI
ADD_TEST(test_old);
ADD_TEST(test_new_ui);
-#endif
}