Lines Matching refs:passwd_len
40 const size_t passwd_len, in mysqlnd_run_authentication() argument
112 passwd_len, plugin_data, plugin_data_len, in mysqlnd_run_authentication()
121 …ret = mysqlnd_auth_handshake(conn, user, passwd, passwd_len, db, db_len, session_options, mysql_fl… in mysqlnd_run_authentication()
131 ret = mysqlnd_auth_change_user(conn, user, strlen(user), passwd, passwd_len, db, db_len, silent, in mysqlnd_run_authentication()
208 const size_t passwd_len, in mysqlnd_connect_run_authentication() argument
222 ret = mysqlnd_run_authentication(conn, user, passwd, passwd_len, db, db_len, in mysqlnd_connect_run_authentication()
236 const size_t passwd_len, in mysqlnd_auth_handshake() argument
318 orig_auth_plugin_data, orig_auth_plugin_data_len, passwd, passwd_len, in mysqlnd_auth_handshake()
368 const size_t passwd_len, in mysqlnd_auth_change_user() argument
444 orig_auth_plugin_data, orig_auth_plugin_data_len, passwd, passwd_len, in mysqlnd_auth_change_user()
492 mysqlnd_set_persistent_string(&conn->password, passwd, passwd_len, conn->persistent); in mysqlnd_auth_change_user()
562 const size_t passwd_len, zend_uchar * auth_plugin_data, const size_t auth_plugin_data_len, in mysqlnd_native_auth_get_auth_data() argument
581 if (passwd && passwd_len) { in mysqlnd_native_auth_get_auth_data()
585 php_mysqlnd_scramble((zend_uchar*)ret, auth_plugin_data, (zend_uchar*)passwd, passwd_len); in mysqlnd_native_auth_get_auth_data()
623 const size_t passwd_len, zend_uchar * auth_plugin_data, const size_t auth_plugin_data_len, in mysqlnd_pam_auth_get_auth_data() argument
632 if (passwd && passwd_len) { in mysqlnd_pam_auth_get_auth_data()
633 ret = (zend_uchar*) zend_strndup(passwd, passwd_len); in mysqlnd_pam_auth_get_auth_data()
639 *auth_data_len = passwd_len + 1; in mysqlnd_pam_auth_get_auth_data()
702 …rypt(MYSQLND_CONN_DATA * conn, mysqlnd_rsa_t server_public_key, size_t passwd_len, size_t * auth_d… in mysqlnd_sha256_public_encrypt() argument
713 if (server_public_key_len <= passwd_len + 41) { in mysqlnd_sha256_public_encrypt()
726 … EVP_PKEY_encrypt(ctx, ret, &server_public_key_len, (zend_uchar *) xor_str, passwd_len + 1) <= 0) { in mysqlnd_sha256_public_encrypt()
782 …rypt(MYSQLND_CONN_DATA * conn, mysqlnd_rsa_t server_public_key, size_t passwd_len, size_t * auth_d… in mysqlnd_sha256_public_encrypt() argument
785 DWORD server_public_key_len = passwd_len; in mysqlnd_sha256_public_encrypt()
792 if (BCryptEncrypt((BCRYPT_KEY_HANDLE) server_public_key, xor_str, passwd_len + 1, &padding_info, in mysqlnd_sha256_public_encrypt()
802 if ((size_t) server_public_key_len <= passwd_len + 41) { in mysqlnd_sha256_public_encrypt()
812 if (BCryptEncrypt((BCRYPT_KEY_HANDLE) server_public_key, xor_str, passwd_len + 1, &padding_info, in mysqlnd_sha256_public_encrypt()
900 const size_t passwd_len, zend_uchar * auth_plugin_data, const size_t auth_plugin_data_len, in mysqlnd_sha256_auth_get_auth_data() argument
917 *auth_data_len = passwd_len + 1; in mysqlnd_sha256_auth_get_auth_data()
918 ret = malloc(passwd_len + 1); in mysqlnd_sha256_auth_get_auth_data()
919 memcpy(ret, passwd, passwd_len); in mysqlnd_sha256_auth_get_auth_data()
920 ret[passwd_len] = '\0'; in mysqlnd_sha256_auth_get_auth_data()
927 char *xor_str = do_alloca(passwd_len + 1, use_heap); in mysqlnd_sha256_auth_get_auth_data()
928 memcpy(xor_str, passwd, passwd_len); in mysqlnd_sha256_auth_get_auth_data()
929 xor_str[passwd_len] = '\0'; in mysqlnd_sha256_auth_get_auth_data()
933 mysqlnd_xor_string(xor_str, passwd_len, (char *) auth_plugin_data, SCRAMBLE_LENGTH); in mysqlnd_sha256_auth_get_auth_data()
934 ret = mysqlnd_sha256_public_encrypt(conn, server_public_key, passwd_len, auth_data_len, xor_str); in mysqlnd_sha256_auth_get_auth_data()
1010 …rypt(MYSQLND_CONN_DATA * conn, mysqlnd_rsa_t server_public_key, size_t passwd_len, unsigned char *… in mysqlnd_caching_sha2_public_encrypt() argument
1020 if (server_public_key_len <= passwd_len + 41) { in mysqlnd_caching_sha2_public_encrypt()
1032 …EVP_PKEY_encrypt(ctx, *crypted, &server_public_key_len, (zend_uchar *) xor_str, passwd_len + 1) <=… in mysqlnd_caching_sha2_public_encrypt()
1046 …rypt(MYSQLND_CONN_DATA * conn, mysqlnd_rsa_t server_public_key, size_t passwd_len, unsigned char *… in mysqlnd_caching_sha2_public_encrypt() argument
1048 DWORD server_public_key_len = passwd_len; in mysqlnd_caching_sha2_public_encrypt()
1055 if (BCryptEncrypt((BCRYPT_KEY_HANDLE) server_public_key, xor_str, passwd_len + 1, &padding_info, in mysqlnd_caching_sha2_public_encrypt()
1065 if ((size_t) server_public_key_len <= passwd_len + 41) { in mysqlnd_caching_sha2_public_encrypt()
1074 if (BCryptEncrypt((BCRYPT_KEY_HANDLE) server_public_key, xor_str, passwd_len + 1, &padding_info, in mysqlnd_caching_sha2_public_encrypt()
1091 … const size_t passwd_len, zend_uchar * auth_plugin_data, const size_t auth_plugin_data_len, in mysqlnd_caching_sha2_get_auth_data() argument
1110 if (passwd && passwd_len) { in mysqlnd_caching_sha2_get_auth_data()
1113 php_mysqlnd_scramble_sha2((zend_uchar*)ret, auth_plugin_data, (zend_uchar*)passwd, passwd_len); in mysqlnd_caching_sha2_get_auth_data()
1197 const size_t passwd_len) in mysqlnd_caching_sha2_get_and_use_key() argument
1206 char *xor_str = do_alloca(passwd_len + 1, use_heap); in mysqlnd_caching_sha2_get_and_use_key()
1207 memcpy(xor_str, passwd, passwd_len); in mysqlnd_caching_sha2_get_and_use_key()
1208 xor_str[passwd_len] = '\0'; in mysqlnd_caching_sha2_get_and_use_key()
1209 mysqlnd_xor_string(xor_str, passwd_len, (char *) auth_plugin_data, SCRAMBLE_LENGTH); in mysqlnd_caching_sha2_get_and_use_key()
1210 …server_public_key_len = mysqlnd_caching_sha2_public_encrypt(conn, server_public_key, passwd_len, c… in mysqlnd_caching_sha2_get_and_use_key()
1232 const size_t passwd_len, in mysqlnd_caching_sha2_handle_server_response() argument
1240 if (passwd_len == 0) { in mysqlnd_caching_sha2_handle_server_response()
1272 result_packet.password_len = passwd_len + 1; in mysqlnd_caching_sha2_handle_server_response()
1276 …use_key(conn, auth_plugin_data, auth_plugin_data_len, &result_packet.password, passwd, passwd_len); in mysqlnd_caching_sha2_handle_server_response()