Lines Matching refs:spki
1655 NETSCAPE_SPKI *spki=NULL; in PHP_FUNCTION() local
1680 if ((spki = NETSCAPE_SPKI_new()) == NULL) { in PHP_FUNCTION()
1687 if (!ASN1_STRING_set(spki->spkac->challenge, challenge, (int)challenge_len)) { in PHP_FUNCTION()
1694 if (!NETSCAPE_SPKI_set_pubkey(spki, pkey)) { in PHP_FUNCTION()
1700 if (!NETSCAPE_SPKI_sign(spki, pkey, mdtype)) { in PHP_FUNCTION()
1706 spkstr = NETSCAPE_SPKI_b64_encode(spki); in PHP_FUNCTION()
1723 if (spki != NULL) { in PHP_FUNCTION()
1724 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()
1741 NETSCAPE_SPKI *spki = NULL; in PHP_FUNCTION() local
1756 spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, spkstr_cleaned_len); in PHP_FUNCTION()
1757 if (spki == NULL) { in PHP_FUNCTION()
1763 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION()
1770 i = NETSCAPE_SPKI_verify(spki, pkey); in PHP_FUNCTION()
1774 if (spki != NULL) { in PHP_FUNCTION()
1775 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()
1798 NETSCAPE_SPKI *spki = NULL; in PHP_FUNCTION() local
1814 spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, spkstr_cleaned_len); in PHP_FUNCTION()
1815 if (spki == NULL) { in PHP_FUNCTION()
1821 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION()
1841 if (spki != NULL) { in PHP_FUNCTION()
1842 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()
1862 NETSCAPE_SPKI *spki = NULL; in PHP_FUNCTION() local
1877 spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, spkstr_cleaned_len); in PHP_FUNCTION()
1878 if (spki == NULL) { in PHP_FUNCTION()
1884 RETVAL_STRING((const char *)ASN1_STRING_get0_data(spki->spkac->challenge)); in PHP_FUNCTION()
1891 if (spki) { in PHP_FUNCTION()
1892 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()