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

Change the trust and purpose code so it doesn't need init

either and has a static and dynamic mix.
parent 08cba610
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -4,6 +4,18 @@

 Changes between 0.9.4 and 0.9.5  [xx XXX 1999]

  *) Modify X509_TRUST and X509_PURPOSE so it also uses a static and
     dynamic mix. In both cases the ids can be used as an index into the
     table. Also modified the X509_TRUST_add() and X509_PURPOSE_add()
     functions so they accept a list of the field values and the
     application doesn't need to directly manipulate the X509_TRUST
     structure.
     [Steve Henson]

  *) Modify the ASN1_STRING_TABLE stuff so it also uses bsearch and doesn't
     need initialising.
     [Steve Henson]

  *) Modify the way the V3 extension code looks up extensions. This now
     works in a similar way to the object code: we have some "standard"
     extensions in a static table which is searched with OBJ_bsearch()
+0 −1
Original line number Diff line number Diff line
@@ -843,7 +843,6 @@ end:
	X509_REQ_free(req);
	X509_free(x509ss);
	OBJ_cleanup();
	ASN1_STRING_TABLE_cleanup();
#ifndef NO_DSA
	if (dsa_params != NULL) DSA_free(dsa_params);
#endif
+0 −1
Original line number Diff line number Diff line
@@ -740,7 +740,6 @@ end:
	if (ctx != NULL) SSL_CTX_free(ctx);
	if (cbuf != NULL) { memset(cbuf,0,BUFSIZZ); Free(cbuf); }
	if (sbuf != NULL) { memset(sbuf,0,BUFSIZZ); Free(sbuf); }
	X509_cleanup();
	if (bio_c_out != NULL)
		{
		BIO_free(bio_c_out);
+0 −1
Original line number Diff line number Diff line
@@ -718,7 +718,6 @@ bad:
	ret=0;
end:
	if (ctx != NULL) SSL_CTX_free(ctx);
	X509_cleanup();
	if (bio_s_out != NULL)
		{
		BIO_free(bio_s_out);
+0 −2
Original line number Diff line number Diff line
@@ -84,7 +84,6 @@ int MAIN(int argc, char **argv)
	X509_STORE *cert_ctx=NULL;
	X509_LOOKUP *lookup=NULL;

	X509_init();
	cert_ctx=X509_STORE_new();
	if (cert_ctx == NULL) goto end;
	X509_STORE_set_verify_cb_func(cert_ctx,cb);
@@ -196,7 +195,6 @@ end:
	}
	if (cert_ctx != NULL) X509_STORE_free(cert_ctx);
	sk_X509_pop_free(untrusted, X509_free);
	X509_cleanup();
	EXIT(ret);
	}

Loading