diff options
author | Rich Salz <rsalz@akamai.com> | 2019-10-17 15:45:34 -0400 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-10-17 23:19:59 +0200 |
commit | 3d48457478bd61030c370e4090c1462fc4453d81 (patch) | |
tree | cf36ad0667881411cb5b02f44411c03e510e12f2 /apps/s_server.c | |
parent | 8c77d45adab101f10b323de3d59fb47b8f8d3a93 (diff) | |
download | openssl-3d48457478bd61030c370e4090c1462fc4453d81.tar.gz |
Replace BUF_ string function calls with OPENSSL_ ones
Deprecate the BUF_ string macros
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10207)
Diffstat (limited to 'apps/s_server.c')
-rw-r--r-- | apps/s_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/s_server.c b/apps/s_server.c index 28937bd80f..ab409db701 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -1010,7 +1010,7 @@ int s_server_main(int argc, char *argv[]) int socket_family = AF_UNSPEC, socket_type = SOCK_STREAM, protocol = 0; int state = 0, crl_format = FORMAT_PEM, crl_download = 0; char *host = NULL; - char *port = BUF_strdup(PORT); + char *port = OPENSSL_strdup(PORT); unsigned char *context = NULL; OPTION_CHOICE o; EVP_PKEY *s_key2 = NULL; @@ -1159,7 +1159,7 @@ int s_server_main(int argc, char *argv[]) #ifdef AF_UNIX case OPT_UNIX: socket_family = AF_UNIX; - OPENSSL_free(host); host = BUF_strdup(opt_arg()); + OPENSSL_free(host); host = OPENSSL_strdup(opt_arg()); OPENSSL_free(port); port = NULL; break; case OPT_UNLINK: |