diff options
Diffstat (limited to 'src/lib/libssl/src/apps/s_server.c')
| -rw-r--r-- | src/lib/libssl/src/apps/s_server.c | 28 | 
1 files changed, 14 insertions, 14 deletions
| diff --git a/src/lib/libssl/src/apps/s_server.c b/src/lib/libssl/src/apps/s_server.c index 74cd2c83b3..1a2b9804ef 100644 --- a/src/lib/libssl/src/apps/s_server.c +++ b/src/lib/libssl/src/apps/s_server.c | |||
| @@ -710,9 +710,9 @@ BIO_printf(err, "cert_status: received %d ids\n", sk_OCSP_RESPID_num(ids)); | |||
| 710 | ERR_print_errors(err); | 710 | ERR_print_errors(err); | 
| 711 | if (aia) | 711 | if (aia) | 
| 712 | { | 712 | { | 
| 713 | OPENSSL_free(host); | 713 | free(host); | 
| 714 | OPENSSL_free(path); | 714 | free(path); | 
| 715 | OPENSSL_free(port); | 715 | free(port); | 
| 716 | X509_email_free(aia); | 716 | X509_email_free(aia); | 
| 717 | } | 717 | } | 
| 718 | if (id) | 718 | if (id) | 
| @@ -1720,18 +1720,18 @@ end: | |||
| 1720 | if (s_dkey) | 1720 | if (s_dkey) | 
| 1721 | EVP_PKEY_free(s_dkey); | 1721 | EVP_PKEY_free(s_dkey); | 
| 1722 | if (pass) | 1722 | if (pass) | 
| 1723 | OPENSSL_free(pass); | 1723 | free(pass); | 
| 1724 | if (dpass) | 1724 | if (dpass) | 
| 1725 | OPENSSL_free(dpass); | 1725 | free(dpass); | 
| 1726 | if (vpm) | 1726 | if (vpm) | 
| 1727 | X509_VERIFY_PARAM_free(vpm); | 1727 | X509_VERIFY_PARAM_free(vpm); | 
| 1728 | #ifndef OPENSSL_NO_TLSEXT | 1728 | #ifndef OPENSSL_NO_TLSEXT | 
| 1729 | if (tlscstatp.host) | 1729 | if (tlscstatp.host) | 
| 1730 | OPENSSL_free(tlscstatp.host); | 1730 | free(tlscstatp.host); | 
| 1731 | if (tlscstatp.port) | 1731 | if (tlscstatp.port) | 
| 1732 | OPENSSL_free(tlscstatp.port); | 1732 | free(tlscstatp.port); | 
| 1733 | if (tlscstatp.path) | 1733 | if (tlscstatp.path) | 
| 1734 | OPENSSL_free(tlscstatp.path); | 1734 | free(tlscstatp.path); | 
| 1735 | if (ctx2 != NULL) SSL_CTX_free(ctx2); | 1735 | if (ctx2 != NULL) SSL_CTX_free(ctx2); | 
| 1736 | if (s_cert2) | 1736 | if (s_cert2) | 
| 1737 | X509_free(s_cert2); | 1737 | X509_free(s_cert2); | 
| @@ -1791,7 +1791,7 @@ static int sv_body(char *hostname, int s, unsigned char *context) | |||
| 1791 | struct timeval *timeoutp; | 1791 | struct timeval *timeoutp; | 
| 1792 | #endif | 1792 | #endif | 
| 1793 | 1793 | ||
| 1794 | if ((buf=OPENSSL_malloc(bufsize)) == NULL) | 1794 | if ((buf=malloc(bufsize)) == NULL) | 
| 1795 | { | 1795 | { | 
| 1796 | BIO_printf(bio_err,"out of memory\n"); | 1796 | BIO_printf(bio_err,"out of memory\n"); | 
| 1797 | goto err; | 1797 | goto err; | 
| @@ -2162,7 +2162,7 @@ err: | |||
| 2162 | if (buf != NULL) | 2162 | if (buf != NULL) | 
| 2163 | { | 2163 | { | 
| 2164 | OPENSSL_cleanse(buf,bufsize); | 2164 | OPENSSL_cleanse(buf,bufsize); | 
| 2165 | OPENSSL_free(buf); | 2165 | free(buf); | 
| 2166 | } | 2166 | } | 
| 2167 | if (ret >= 0) | 2167 | if (ret >= 0) | 
| 2168 | BIO_printf(bio_s_out,"ACCEPT\n"); | 2168 | BIO_printf(bio_s_out,"ACCEPT\n"); | 
| @@ -2288,7 +2288,7 @@ static int init_ssl_connection(SSL *con) | |||
| 2288 | BIO_printf(bio_s_out, " Label: '%s'\n", keymatexportlabel); | 2288 | BIO_printf(bio_s_out, " Label: '%s'\n", keymatexportlabel); | 
| 2289 | BIO_printf(bio_s_out, " Length: %i bytes\n", | 2289 | BIO_printf(bio_s_out, " Length: %i bytes\n", | 
| 2290 | keymatexportlen); | 2290 | keymatexportlen); | 
| 2291 | exportedkeymat = OPENSSL_malloc(keymatexportlen); | 2291 | exportedkeymat = malloc(keymatexportlen); | 
| 2292 | if (exportedkeymat != NULL) | 2292 | if (exportedkeymat != NULL) | 
| 2293 | { | 2293 | { | 
| 2294 | if (!SSL_export_keying_material(con, exportedkeymat, | 2294 | if (!SSL_export_keying_material(con, exportedkeymat, | 
| @@ -2307,7 +2307,7 @@ static int init_ssl_connection(SSL *con) | |||
| 2307 | exportedkeymat[i]); | 2307 | exportedkeymat[i]); | 
| 2308 | BIO_printf(bio_s_out, "\n"); | 2308 | BIO_printf(bio_s_out, "\n"); | 
| 2309 | } | 2309 | } | 
| 2310 | OPENSSL_free(exportedkeymat); | 2310 | free(exportedkeymat); | 
| 2311 | } | 2311 | } | 
| 2312 | } | 2312 | } | 
| 2313 | 2313 | ||
| @@ -2365,7 +2365,7 @@ static int www_body(char *hostname, int s, unsigned char *context) | |||
| 2365 | KSSL_CTX *kctx; | 2365 | KSSL_CTX *kctx; | 
| 2366 | #endif | 2366 | #endif | 
| 2367 | 2367 | ||
| 2368 | buf=OPENSSL_malloc(bufsize); | 2368 | buf=malloc(bufsize); | 
| 2369 | if (buf == NULL) return(0); | 2369 | if (buf == NULL) return(0); | 
| 2370 | io=BIO_new(BIO_f_buffer()); | 2370 | io=BIO_new(BIO_f_buffer()); | 
| 2371 | ssl_bio=BIO_new(BIO_f_ssl()); | 2371 | ssl_bio=BIO_new(BIO_f_ssl()); | 
| @@ -2743,7 +2743,7 @@ err: | |||
| 2743 | if (ret >= 0) | 2743 | if (ret >= 0) | 
| 2744 | BIO_printf(bio_s_out,"ACCEPT\n"); | 2744 | BIO_printf(bio_s_out,"ACCEPT\n"); | 
| 2745 | 2745 | ||
| 2746 | if (buf != NULL) OPENSSL_free(buf); | 2746 | if (buf != NULL) free(buf); | 
| 2747 | if (io != NULL) BIO_free_all(io); | 2747 | if (io != NULL) BIO_free_all(io); | 
| 2748 | /* if (ssl_bio != NULL) BIO_free(ssl_bio);*/ | 2748 | /* if (ssl_bio != NULL) BIO_free(ssl_bio);*/ | 
| 2749 | return(ret); | 2749 | return(ret); | 
