{
size_t spkstr_len;
int i = 0, spkstr_cleaned_len = 0;
- char *spkstr = NULL, * spkstr_cleaned = NULL;
+ char *spkstr, * spkstr_cleaned = NULL;
EVP_PKEY *pkey = NULL;
NETSCAPE_SPKI *spki = NULL;
}
RETVAL_FALSE;
- if (spkstr == NULL) {
- php_error_docref(NULL, E_WARNING, "Unable to use supplied SPKAC");
- goto cleanup;
- }
-
spkstr_cleaned = emalloc(spkstr_len + 1);
spkstr_cleaned_len = (int)(spkstr_len - php_openssl_spki_cleanup(spkstr, spkstr_cleaned));
PHP_FUNCTION(openssl_spki_export)
{
size_t spkstr_len;
- char *spkstr = NULL, * spkstr_cleaned = NULL, * s = NULL;
+ char *spkstr, * spkstr_cleaned = NULL, * s = NULL;
int spkstr_cleaned_len;
EVP_PKEY *pkey = NULL;
}
RETVAL_FALSE;
- if (spkstr == NULL) {
- php_error_docref(NULL, E_WARNING, "Unable to use supplied SPKAC");
- goto cleanup;
- }
-
spkstr_cleaned = emalloc(spkstr_len + 1);
spkstr_cleaned_len = (int)(spkstr_len - php_openssl_spki_cleanup(spkstr, spkstr_cleaned));
PHP_FUNCTION(openssl_spki_export_challenge)
{
size_t spkstr_len;
- char *spkstr = NULL, * spkstr_cleaned = NULL;
+ char *spkstr, * spkstr_cleaned = NULL;
int spkstr_cleaned_len;
NETSCAPE_SPKI *spki = NULL;
}
RETVAL_FALSE;
- if (spkstr == NULL) {
- php_error_docref(NULL, E_WARNING, "Unable to use supplied SPKAC");
- goto cleanup;
- }
-
spkstr_cleaned = emalloc(spkstr_len + 1);
spkstr_cleaned_len = (int)(spkstr_len - php_openssl_spki_cleanup(spkstr, spkstr_cleaned));