Lines Matching refs:ZSTR_VAL

1914 	sprintf(ZSTR_VAL(s), "%s%s", spkac, spkstr);  in PHP_FUNCTION()
1915 ZSTR_LEN(s) = strlen(ZSTR_VAL(s)); in PHP_FUNCTION()
2181 make_digest_ex(ZSTR_VAL(ret), md, n); in php_openssl_x509_fingerprint()
2182 ZSTR_VAL(ret)[n * 2] = '\0'; in php_openssl_x509_fingerprint()
2692 if (VCWD_STAT(ZSTR_VAL(str), &sb) == -1) { in php_openssl_setup_verify()
2693 php_error_docref(NULL, E_WARNING, "unable to stat %s", ZSTR_VAL(str)); in php_openssl_setup_verify()
2700 …if (file_lookup == NULL || !X509_LOOKUP_load_file(file_lookup, ZSTR_VAL(str), X509_FILETYPE_PEM)) { in php_openssl_setup_verify()
2702 php_error_docref(NULL, E_WARNING, "error loading file %s", ZSTR_VAL(str)); in php_openssl_setup_verify()
2709 if (dir_lookup == NULL || !X509_LOOKUP_add_dir(dir_lookup, ZSTR_VAL(str), X509_FILETYPE_PEM)) { in php_openssl_setup_verify()
2711 php_error_docref(NULL, E_WARNING, "error loading directory %s", ZSTR_VAL(str)); in php_openssl_setup_verify()
3166 int nid = OBJ_txt2nid(ZSTR_VAL(strindex)); in php_openssl_make_REQ()
3173 (unsigned char*)ZSTR_VAL(str_item), -1, -1, 0)) in php_openssl_make_REQ()
3180 nid, ZSTR_VAL(str_item)); in php_openssl_make_REQ()
3186 php_error_docref(NULL, E_WARNING, "dn: %s is not a recognized name", ZSTR_VAL(strindex)); in php_openssl_make_REQ()
3249 nid = OBJ_txt2nid(ZSTR_VAL(strindex)); in php_openssl_make_REQ()
3255 …if (!X509_NAME_add_entry_by_NID(subj, nid, MBSTRING_UTF8, (unsigned char*)ZSTR_VAL(str_item), -1, … in php_openssl_make_REQ()
3257 …or_docref(NULL, E_WARNING, "attribs: add_entry_by_NID %d -> %s (failed)", nid, ZSTR_VAL(str_item)); in php_openssl_make_REQ()
3263 php_error_docref(NULL, E_WARNING, "dn: %s is not a recognized name", ZSTR_VAL(strindex)); in php_openssl_make_REQ()
4208 BN_bn2bin(_bn, (unsigned char*)ZSTR_VAL(str)); \
4209 ZSTR_VAL(str)[len] = 0; \
5023 len = DH_compute_key((unsigned char*)ZSTR_VAL(data), pub, dh); in PHP_FUNCTION()
5027 ZSTR_VAL(data)[len] = 0; in PHP_FUNCTION()
5070 if (EVP_PKEY_derive(ctx, (unsigned char*)ZSTR_VAL(result), &key_size) > 0) { in PHP_FUNCTION()
5072 ZSTR_VAL(result)[key_size] = 0; in PHP_FUNCTION()
5132 …int)salt_len, (int)iterations, digest, (int)key_length, (unsigned char*)ZSTR_VAL(out_buffer)) == 1… in PHP_FUNCTION()
5133 ZSTR_VAL(out_buffer)[key_length] = 0; in PHP_FUNCTION()
5404 BIO_printf(outfile, "%s: %s\n", ZSTR_VAL(strindex), ZSTR_VAL(str)); in PHP_FUNCTION()
5406 BIO_printf(outfile, "%s\n", ZSTR_VAL(str)); in PHP_FUNCTION()
5622 ret = BIO_printf(outfile, "%s: %s\n", ZSTR_VAL(strindex), ZSTR_VAL(str)); in PHP_FUNCTION()
5624 ret = BIO_printf(outfile, "%s\n", ZSTR_VAL(str)); in PHP_FUNCTION()
5769 (unsigned char *)ZSTR_VAL(cryptedbuf), in PHP_FUNCTION()
5778 ZSTR_VAL(cryptedbuf)[cryptedlen] = '\0'; in PHP_FUNCTION()
5835 memcpy(ZSTR_VAL(cryptedbuf), crypttemp, cryptedlen); in PHP_FUNCTION()
5846 ZSTR_VAL(cryptedbuf)[cryptedlen] = '\0'; in PHP_FUNCTION()
5897 (unsigned char *)ZSTR_VAL(cryptedbuf), in PHP_FUNCTION()
5907 ZSTR_VAL(cryptedbuf)[cryptedlen] = '\0'; in PHP_FUNCTION()
5964 memcpy(ZSTR_VAL(cryptedbuf), crypttemp, cryptedlen); in PHP_FUNCTION()
5977 ZSTR_VAL(cryptedbuf)[cryptedlen] = '\0'; in PHP_FUNCTION()
6071 EVP_SignFinal(md_ctx, (unsigned char*)ZSTR_VAL(sigbuf), &siglen, pkey)) { in PHP_FUNCTION()
6072 ZSTR_VAL(sigbuf)[siglen] = '\0'; in PHP_FUNCTION()
6462 EVP_DigestFinal (md_ctx, (unsigned char *)ZSTR_VAL(sigbuf), &siglen)) { in PHP_FUNCTION()
6464 ZSTR_VAL(sigbuf)[siglen] = '\0'; in PHP_FUNCTION()
6471 make_digest_ex(ZSTR_VAL(digest_str), (unsigned char*)ZSTR_VAL(sigbuf), siglen); in PHP_FUNCTION()
6472 ZSTR_VAL(digest_str)[digest_str_len] = '\0'; in PHP_FUNCTION()
6688 if (!EVP_CipherUpdate(cipher_ctx, (unsigned char*)ZSTR_VAL(*poutbuf), in php_openssl_cipher_update()
6744 } else if (EVP_EncryptFinal(cipher_ctx, (unsigned char *)ZSTR_VAL(outbuf) + outlen, &i)) { in php_openssl_encrypt()
6747 ZSTR_VAL(outbuf)[outlen] = '\0'; in php_openssl_encrypt()
6752 base64_str = php_base64_encode((unsigned char*)ZSTR_VAL(outbuf), outlen); in php_openssl_encrypt()
6759 if (EVP_CIPHER_CTX_ctrl(cipher_ctx, mode.aead_get_tag_flag, tag_len, ZSTR_VAL(tag_str)) == 1) { in php_openssl_encrypt()
6760 ZSTR_VAL(tag_str)[tag_len] = '\0'; in php_openssl_encrypt()
6854 data = ZSTR_VAL(base64_str); in php_openssl_decrypt()
6864 EVP_DecryptFinal(cipher_ctx, (unsigned char *)ZSTR_VAL(outbuf) + outlen, &i)) { in php_openssl_decrypt()
6866 ZSTR_VAL(outbuf)[outlen] = '\0'; in php_openssl_decrypt()
6978 if (RAND_bytes((unsigned char*)ZSTR_VAL(buffer), (int)buffer_length) <= 0) { in php_openssl_random_pseudo_bytes()
7006 ZSTR_VAL(buffer)[buffer_length] = 0; in PHP_FUNCTION()