Skip to content

Commit 28e5556

Browse files
committed
Remove reserved _t suffix
1 parent 93f0e0a commit 28e5556

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎ext/openssl/openssl.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5116,7 +5116,7 @@ PHP_FUNCTION(openssl_get_channel_binding)
51165116
Z_PARAM_STR(type)
51175117
ZEND_PARSE_PARAMETERS_END();
51185118

5119-
php_openssl_channel_binding_type_t type_code;
5119+
php_openssl_channel_binding_type type_code;
51205120
if (zend_string_equals_literal(type, "tls-unique")) {
51215121
type_code = PHP_OPENSSL_CHANNEL_BINDING_TYPE_TLS_UNIQUE;
51225122
} else if (zend_string_equals_literal(type, "tls-server-end-point")) {
@@ -5133,7 +5133,7 @@ PHP_FUNCTION(openssl_get_channel_binding)
51335133
}
51345134

51355135
zend_string *result = NULL;
5136-
php_openssl_channel_binding_result_t ret = php_openssl_netstream_get_channel_binding(stream, type_code, &result);
5136+
php_openssl_channel_binding_result ret = php_openssl_netstream_get_channel_binding(stream, type_code, &result);
51375137
switch (ret) {
51385138
case PHP_OPENSSL_CHANNEL_BINDING_RESULT_OK:
51395139
RETURN_STR(result);

‎ext/openssl/php_openssl.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,15 @@ typedef enum php_openssl_channel_binding_type {
232232
PHP_OPENSSL_CHANNEL_BINDING_TYPE_TLS_UNIQUE = 0,
233233
PHP_OPENSSL_CHANNEL_BINDING_TYPE_TLS_SERVER_ENDPOINT,
234234
PHP_OPENSSL_CHANNEL_BINDING_TYPE_TLS_EXPORTER,
235-
} php_openssl_channel_binding_type_t;
235+
} php_openssl_channel_binding_type;
236236

237237
/* Result of php_openssl_netstream_get_channel_binding(). */
238238
typedef enum php_openssl_channel_binding_result {
239239
PHP_OPENSSL_CHANNEL_BINDING_RESULT_OK = 0, /* *out holds a zend_string with the data */
240240
PHP_OPENSSL_CHANNEL_BINDING_RESULT_NOT_APPLICABLE, /* *out = NULL (e.g. tls-unique over TLS 1.3) */
241241
PHP_OPENSSL_CHANNEL_BINDING_RESULT_NOT_TLS, /* stream is not an active TLS stream */
242242
PHP_OPENSSL_CHANNEL_BINDING_RESULT_ERROR, /* an OpenSSL-level failure occurred */
243-
} php_openssl_channel_binding_result_t;
243+
} php_openssl_channel_binding_result;
244244

245245
static inline php_openssl_session_object *php_openssl_session_from_obj(zend_object *obj) {
246246
return (php_openssl_session_object *)((char *)(obj) - offsetof(php_openssl_session_object, std));
@@ -254,7 +254,7 @@ extern zend_class_entry *php_openssl_session_ce;
254254
void php_openssl_session_object_init(zval *zv, SSL_SESSION *session);
255255
bool php_openssl_is_session_ce(zval *val);
256256
SSL_SESSION *php_openssl_session_from_zval(zval *zv);
257-
php_openssl_channel_binding_result_t php_openssl_netstream_get_channel_binding(struct _php_stream *stream, php_openssl_channel_binding_type_t type, zend_string **out);
257+
php_openssl_channel_binding_result php_openssl_netstream_get_channel_binding(struct _php_stream *stream, php_openssl_channel_binding_type type, zend_string **out);
258258

259259
#if defined(HAVE_OPENSSL_ARGON2)
260260

‎ext/openssl/xp_ssl.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3975,8 +3975,8 @@ static int php_openssl_get_cert_signature_md_nid(const X509 *cert) /* {{{ */
39753975
* stream PHP_OPENSSL_CHANNEL_BINDING_RESULT_NOT_TLS is returned, and if an OpenSSL call fails
39763976
* PHP_OPENSSL_CHANNEL_BINDING_RESULT_ERROR is returned; in both of these cases *out is set to NULL.
39773977
*/
3978-
php_openssl_channel_binding_result_t php_openssl_netstream_get_channel_binding( /* {{{ */
3979-
php_stream *stream, php_openssl_channel_binding_type_t type, zend_string **out)
3978+
php_openssl_channel_binding_result php_openssl_netstream_get_channel_binding( /* {{{ */
3979+
php_stream *stream, php_openssl_channel_binding_type type, zend_string **out)
39803980
{
39813981
unsigned char buf[EVP_MAX_MD_SIZE];
39823982
size_t len = 0;

0 commit comments

Comments
 (0)