#include "cryptlib.h"
#include <openssl/conf.h>
#include <openssl/x509v3.h>
+#include <openssl/bn.h>
static char *strip_spaces(char *name);
static int sk_strcmp(const char * const *a, const char * const *b);
unsigned long chtype)
{
CONF_VALUE *v;
- int i;
+ int i, mval;
char *p, *type;
if (!nm)
return 0;
if(*p) type = p;
break;
}
+#ifndef CHARSET_EBCDIC
+ if (*type == '+')
+#else
+ if (*type == os_toascii['+'])
+#endif
+ {
+ mval = -1;
+ type++;
+ }
+ else
+ mval = 0;
if (!X509_NAME_add_entry_by_txt(nm,type, chtype,
- (unsigned char *) v->value,-1,-1,0))
+ (unsigned char *) v->value,-1,-1,mval))
return 0;
}