-/* $OpenBSD: evp_key.c,v 1.32 2024/01/05 10:15:36 tb Exp $ */
+/* $OpenBSD: evp_key.c,v 1.33 2024/01/05 10:18:52 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
{
if (prompt == NULL)
prompt_string[0] = '\0';
- else {
+ else
strlcpy(prompt_string, prompt, sizeof(prompt_string));
- }
}
char *
EVP_get_pw_prompt(void)
{
if (prompt_string[0] == '\0')
- return (NULL);
- else
- return (prompt_string);
+ return NULL;
+
+ return prompt_string;
}
int
}
if (data == NULL)
- return (nkey);
+ return nkey;
EVP_MD_CTX_init(&c);
for (;;) {