Skip to content

Commit 04320d2

Browse files
committed
ext/phar: Use standard C types
1 parent 4a4aae5 commit 04320d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/phar/phar_object.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3036,7 +3036,7 @@ PHP_METHOD(Phar, setSignatureAlgorithm)
30363036
zend_throw_exception_ex(phar_ce_PharException, 0, "phar \"%s\" is persistent, unable to copy on write", phar_obj->archive->fname);
30373037
RETURN_THROWS();
30383038
}
3039-
phar_obj->archive->sig_flags = (php_uint32)algo;
3039+
phar_obj->archive->sig_flags = (uint32_t)algo;
30403040
phar_obj->archive->is_modified = 1;
30413041
PHAR_G(openssl_privatekey) = key;
30423042
PHAR_G(openssl_privatekey_len) = key_len;

ext/phar/util.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <openssl/ssl.h>
3535
#include <openssl/pkcs12.h>
3636
#else
37-
static int phar_call_openssl_signverify(int is_sign, php_stream *fp, zend_off_t end, char *key, size_t key_len, char **signature, size_t *signature_len, php_uint32 sig_type);
37+
static int phar_call_openssl_signverify(int is_sign, php_stream *fp, zend_off_t end, char *key, size_t key_len, char **signature, size_t *signature_len, uint32_t sig_type);
3838
#endif
3939

4040
/* for links to relative location, prepend cwd of the entry */
@@ -1382,7 +1382,7 @@ static int phar_hex_str(const char *digest, size_t digest_len, char **signature)
13821382
/* }}} */
13831383

13841384
#ifndef PHAR_HAVE_OPENSSL
1385-
static int phar_call_openssl_signverify(int is_sign, php_stream *fp, zend_off_t end, char *key, size_t key_len, char **signature, size_t *signature_len, php_uint32 sig_type) /* {{{ */
1385+
static int phar_call_openssl_signverify(int is_sign, php_stream *fp, zend_off_t end, char *key, size_t key_len, char **signature, size_t *signature_len, uint32_t sig_type) /* {{{ */
13861386
{
13871387
zend_fcall_info fci;
13881388
zend_fcall_info_cache fcc;

0 commit comments

Comments
 (0)