Lines Matching refs:spki
1539 NETSCAPE_SPKI *spki=NULL; in PHP_FUNCTION() local
1564 if ((spki = NETSCAPE_SPKI_new()) == NULL) { in PHP_FUNCTION()
1571 if (!ASN1_STRING_set(spki->spkac->challenge, challenge, (int)challenge_len)) { in PHP_FUNCTION()
1578 if (!NETSCAPE_SPKI_set_pubkey(spki, pkey)) { in PHP_FUNCTION()
1584 if (!NETSCAPE_SPKI_sign(spki, pkey, mdtype)) { in PHP_FUNCTION()
1590 spkstr = NETSCAPE_SPKI_b64_encode(spki); in PHP_FUNCTION()
1607 if (spki != NULL) { in PHP_FUNCTION()
1608 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()
1625 NETSCAPE_SPKI *spki = NULL; in PHP_FUNCTION() local
1640 spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, spkstr_cleaned_len); in PHP_FUNCTION()
1641 if (spki == NULL) { in PHP_FUNCTION()
1647 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION()
1654 i = NETSCAPE_SPKI_verify(spki, pkey); in PHP_FUNCTION()
1658 if (spki != NULL) { in PHP_FUNCTION()
1659 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()
1682 NETSCAPE_SPKI *spki = NULL; in PHP_FUNCTION() local
1698 spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, spkstr_cleaned_len); in PHP_FUNCTION()
1699 if (spki == NULL) { in PHP_FUNCTION()
1705 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION()
1725 if (spki != NULL) { in PHP_FUNCTION()
1726 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()
1746 NETSCAPE_SPKI *spki = NULL; in PHP_FUNCTION() local
1761 spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, spkstr_cleaned_len); in PHP_FUNCTION()
1762 if (spki == NULL) { in PHP_FUNCTION()
1768 RETVAL_STRING((const char *)ASN1_STRING_get0_data(spki->spkac->challenge)); in PHP_FUNCTION()
1775 if (spki) { in PHP_FUNCTION()
1776 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()