Commit c7cb16a8 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Rename functions for new convention.

parent 47c177c7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4,6 +4,9 @@

 Changes between 0.9.4 and 0.9.5  [xx XXX 2000]

  *) Change function names to the new naming convention.
     [Steve Henson]

  *) Allow for the possibility of temp RSA key generation failure:
     the code used to assume it always worked and crashed on failure.
     [Steve Henson]
+1 −1
Original line number Diff line number Diff line
@@ -693,7 +693,7 @@ int get_cert_chain (X509 *cert, STACK_OF(X509) **chain)
		i = X509_STORE_CTX_get_error (&store_ctx);
		goto err;
	}
	chn =  X509_STORE_CTX_rget_chain(&store_ctx);
	chn =  X509_STORE_CTX_get1_chain(&store_ctx);
	i = 0;
	*chain = chn;
err:
+2 −2
Original line number Diff line number Diff line
@@ -1103,7 +1103,7 @@ static int auto_info(X509_REQ *req, STACK_OF(CONF_VALUE) *dn_sk,
			for (i = 0; i < sk_CONF_VALUE_num(attr_sk); i++)
				{
				v=sk_CONF_VALUE_value(attr_sk,i);
				if(!X509_REQ_radd_attr_by_txt(req, v->name, MBSTRING_ASC,
				if(!X509_REQ_add1_attr_by_txt(req, v->name, MBSTRING_ASC,
					(unsigned char *)v->value, -1)) return 0;
				}
			}
@@ -1201,7 +1201,7 @@ start:
	buf[--i]='\0';
	if(!req_check_len(i, min, max)) goto start;

	if(!X509_REQ_radd_attr_by_NID(req, nid, MBSTRING_ASC,
	if(!X509_REQ_add1_attr_by_NID(req, nid, MBSTRING_ASC,
					(unsigned char *)buf, -1)) {
		BIO_printf(bio_err, "Error adding attribute\n");
		ERR_print_errors(bio_err);
+2 −2
Original line number Diff line number Diff line
@@ -488,9 +488,9 @@ int MAIN(int argc, char **argv)
		}
#ifdef CRYPTO_MDEBUG
		CRYPTO_pop_info();
		CRYPTO_push_info("PKCS7_iget_signers");
		CRYPTO_push_info("PKCS7_get0_signers");
#endif		
		signers = PKCS7_iget_signers(p7, other, flags);
		signers = PKCS7_get0_signers(p7, other, flags);
#ifdef CRYPTO_MDEBUG
		CRYPTO_pop_info();
		CRYPTO_push_info("save_certs");
+2 −2
Original line number Diff line number Diff line
@@ -191,8 +191,8 @@ end:
		for(i = 0; i < X509_PURPOSE_get_count(); i++) {
			X509_PURPOSE *ptmp;
			ptmp = X509_PURPOSE_iget(i);
			BIO_printf(bio_err, "\t%-10s\t%s\n", X509_PURPOSE_iget_sname(ptmp),
								X509_PURPOSE_iget_name(ptmp));
			BIO_printf(bio_err, "\t%-10s\t%s\n", X509_PURPOSE_get0_sname(ptmp),
								X509_PURPOSE_get0_name(ptmp));
		}
	}
	if (cert_ctx != NULL) X509_STORE_free(cert_ctx);
Loading