Add PKCS#12 documentation and new option in x509 to add certificate extensions.

This commit is contained in:
Dr. Stephen Henson
1999-04-27 00:36:20 +00:00
parent 73d2257d97
commit b64f825671
8 changed files with 432 additions and 33 deletions

View File

@@ -135,6 +135,7 @@ int sk_insert(STACK *st, char *data, int loc)
{
char **s;
if(st == NULL) return 0;
if (st->num_alloc <= st->num+1)
{
s=(char **)Realloc((char *)st->data,
@@ -183,7 +184,8 @@ char *sk_delete(STACK *st, int loc)
char *ret;
int i,j;
if ((st->num == 0) || (loc < 0) || (loc >= st->num)) return(NULL);
if ((st == NULL) || (st->num == 0) || (loc < 0)
|| (loc >= st->num)) return(NULL);
ret=st->data[loc];
if (loc != st->num-1)
@@ -206,6 +208,7 @@ int sk_find(STACK *st, char *data)
char **r;
int i;
int (*comp_func)();
if(st == NULL) return -1;
if (st->comp == NULL)
{