Lines Matching refs:spki
1652 NETSCAPE_SPKI *spki=NULL; in PHP_FUNCTION() local
1677 if ((spki = NETSCAPE_SPKI_new()) == NULL) { in PHP_FUNCTION()
1684 if (!ASN1_STRING_set(spki->spkac->challenge, challenge, (int)challenge_len)) { in PHP_FUNCTION()
1691 if (!NETSCAPE_SPKI_set_pubkey(spki, pkey)) { in PHP_FUNCTION()
1697 if (!NETSCAPE_SPKI_sign(spki, pkey, mdtype)) { in PHP_FUNCTION()
1703 spkstr = NETSCAPE_SPKI_b64_encode(spki); in PHP_FUNCTION()
1720 if (spki != NULL) { in PHP_FUNCTION()
1721 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()
1738 NETSCAPE_SPKI *spki = NULL; in PHP_FUNCTION() local
1753 spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, spkstr_cleaned_len); in PHP_FUNCTION()
1754 if (spki == NULL) { in PHP_FUNCTION()
1760 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION()
1767 i = NETSCAPE_SPKI_verify(spki, pkey); in PHP_FUNCTION()
1771 if (spki != NULL) { in PHP_FUNCTION()
1772 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()
1795 NETSCAPE_SPKI *spki = NULL; in PHP_FUNCTION() local
1811 spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, spkstr_cleaned_len); in PHP_FUNCTION()
1812 if (spki == NULL) { in PHP_FUNCTION()
1818 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION()
1838 if (spki != NULL) { in PHP_FUNCTION()
1839 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()
1859 NETSCAPE_SPKI *spki = NULL; in PHP_FUNCTION() local
1874 spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, spkstr_cleaned_len); in PHP_FUNCTION()
1875 if (spki == NULL) { in PHP_FUNCTION()
1881 RETVAL_STRING((const char *)ASN1_STRING_get0_data(spki->spkac->challenge)); in PHP_FUNCTION()
1888 if (spki) { in PHP_FUNCTION()
1889 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()