Lines Matching refs:spki
1606 NETSCAPE_SPKI *spki=NULL; in PHP_FUNCTION() local
1631 if ((spki = NETSCAPE_SPKI_new()) == NULL) { in PHP_FUNCTION()
1638 if (!ASN1_STRING_set(spki->spkac->challenge, challenge, (int)challenge_len)) { in PHP_FUNCTION()
1645 if (!NETSCAPE_SPKI_set_pubkey(spki, pkey)) { in PHP_FUNCTION()
1651 if (!NETSCAPE_SPKI_sign(spki, pkey, mdtype)) { in PHP_FUNCTION()
1657 spkstr = NETSCAPE_SPKI_b64_encode(spki); in PHP_FUNCTION()
1672 if (spki != NULL) { in PHP_FUNCTION()
1673 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()
1690 NETSCAPE_SPKI *spki = NULL; in PHP_FUNCTION() local
1705 spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, spkstr_cleaned_len); in PHP_FUNCTION()
1706 if (spki == NULL) { in PHP_FUNCTION()
1712 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION()
1719 i = NETSCAPE_SPKI_verify(spki, pkey); in PHP_FUNCTION()
1723 if (spki != NULL) { in PHP_FUNCTION()
1724 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()
1747 NETSCAPE_SPKI *spki = NULL; in PHP_FUNCTION() local
1763 spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, spkstr_cleaned_len); in PHP_FUNCTION()
1764 if (spki == NULL) { in PHP_FUNCTION()
1770 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION()
1790 if (spki != NULL) { in PHP_FUNCTION()
1791 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()
1808 NETSCAPE_SPKI *spki = NULL; in PHP_FUNCTION() local
1823 spki = NETSCAPE_SPKI_b64_decode(spkstr_cleaned, spkstr_cleaned_len); in PHP_FUNCTION()
1824 if (spki == NULL) { in PHP_FUNCTION()
1830 RETVAL_STRING((const char *)ASN1_STRING_get0_data(spki->spkac->challenge)); in PHP_FUNCTION()
1837 if (spki) { in PHP_FUNCTION()
1838 NETSCAPE_SPKI_free(spki); in PHP_FUNCTION()