79 if (obj == NULL)
return(-2);
89 if (sk == NULL)
return(-1);
94 for ( ; lastpos < n; lastpos++)
151 if (new_attr != NULL) X509_ATTRIBUTE_free(new_attr);
158 const unsigned char *
bytes,
int len)
164 ret = X509at_add1_attr(x, attr);
165 X509_ATTRIBUTE_free(attr);
171 const unsigned char *bytes,
int len)
177 ret = X509at_add1_attr(x, attr);
178 X509_ATTRIBUTE_free(attr);
184 const unsigned char *bytes,
int len)
190 ret = X509at_add1_attr(x, attr);
191 X509_ATTRIBUTE_free(attr);
212 int atrtype,
const void *
data,
int len)
233 if ((attr == NULL) || (*attr == NULL))
235 if ((ret=X509_ATTRIBUTE_new()) == NULL)
249 if ((attr != NULL) && (*attr == NULL)) *attr=ret;
252 if ((attr == NULL) || (ret != *attr))
253 X509_ATTRIBUTE_free(ret);
258 const char *atrname,
int type,
const unsigned char *bytes,
int len)
278 if ((attr == NULL) || (obj == NULL))
299 }
else if (len != -1){
312 if(!(ttmp = ASN1_TYPE_new()))
goto err;
313 if ((len == -1) && !(attrtype & MBSTRING_FLAG))
336 if (attr == NULL)
return(NULL);
341 int atrtype,
void *
data)
345 if(!ttmp)
return NULL;
355 if (attr == NULL)
return(NULL);