com php-src: make the cleanup function as static, as it's not exported: ext/openssl/openssl.c

From: Date: Fri, 30 Jan 2015 10:20:25 +0000
Subject: com php-src: make the cleanup function as static, as it's not exported: ext/openssl/openssl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84459@lists.php.net to get a copy of this message
Commit: 397615071cc0e6bdd6fe957d1d02b082d1808435 Author: Anatol Belski <ab@php.net> Fri, 30 Jan 2015 11:20:25 +0100 Parents: f6330f9912f7edb0a02d0431a621fc513006b137 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=397615071cc0e6bdd6fe957d1d02b082d1808435 Log: make the cleanup function as static, as it's not exported Changed paths: M ext/openssl/openssl.c Diff: diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 169b4b8..8370d54 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -851,7 +851,24 @@ static int add_oid_section(struct php_x509_request * req) /* {{{ */ static const EVP_CIPHER * php_openssl_get_evp_cipher_from_algo(zend_long algo); -int openssl_spki_cleanup(const char *src, char *dest); +/* {{{ strip line endings from spkac */ +static int openssl_spki_cleanup(const char *src, char *dest) +{ + int removed=0; + + while (*src) { + if (*src!='\n'&&*src!='\r') { + *dest++=*src; + } else { + ++removed; + } + ++src; + } + *dest=0; + return removed; +} +/* }}} */ + static int php_openssl_parse_config(struct php_x509_request * req, zval * optional_args) /* {{{ */ { @@ -1715,24 +1732,6 @@ cleanup: } /* }}} */ -/* {{{ strip line endings from spkac */ -int openssl_spki_cleanup(const char *src, char *dest) -{ - int removed=0; - - while (*src) { - if (*src!='\n'&&*src!='\r') { - *dest++=*src; - } else { - ++removed; - } - ++src; - } - *dest=0; - return removed; -} -/* }}} */ - /* {{{ proto bool openssl_x509_export(mixed x509, string &out [, bool notext = true]) Exports a CERT to file or a var */ PHP_FUNCTION(openssl_x509_export)

« previous php.cvs (#84459) next »