Skip to content

Commit

Permalink
use OPENSSL_strdup instead
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel40791765 committed May 31, 2024
1 parent f376e4e commit ef71340
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions crypto/conf/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,15 +643,7 @@ int CONF_modules_load_file(const char *filename, const char *appname,
}

char *CONF_get1_default_config_file(void) {
const char *temp = "No support for Config files in AWS-LC.";
size_t temp_len = strlen(temp) + 1;

char *ret = (char *)OPENSSL_malloc(temp_len);
if(ret == NULL) {
return NULL;
}
OPENSSL_memcpy(ret, temp, temp_len);
return ret;
return OPENSSL_strdup("No support for Config files in AWS-LC.");
}

void CONF_modules_free(void) {}
Expand Down

0 comments on commit ef71340

Please sign in to comment.