Lines Matching defs:ex
88 X509_EXTENSION *ex;
97 ex=sk_X509_EXTENSION_value(sk,lastpos);
98 if (OBJ_cmp(ex->object,obj) == 0)
108 X509_EXTENSION *ex;
117 ex=sk_X509_EXTENSION_value(sk,lastpos);
118 if ( ((ex->critical > 0) && crit) ||
119 ((ex->critical <= 0) && !crit))
144 X509_EXTENSION *ex, int loc)
168 if ((new_ex=X509_EXTENSION_dup(ex)) == NULL)
183 X509_EXTENSION *X509_EXTENSION_create_by_NID(X509_EXTENSION **ex, int nid,
195 ret=X509_EXTENSION_create_by_OBJ(ex,obj,crit,data);
200 X509_EXTENSION *X509_EXTENSION_create_by_OBJ(X509_EXTENSION **ex,
205 if ((ex == NULL) || (*ex == NULL))
214 ret= *ex;
223 if ((ex != NULL) && (*ex == NULL)) *ex=ret;
226 if ((ex == NULL) || (ret != *ex))
231 int X509_EXTENSION_set_object(X509_EXTENSION *ex, ASN1_OBJECT *obj)
233 if ((ex == NULL) || (obj == NULL))
235 ASN1_OBJECT_free(ex->object);
236 ex->object=OBJ_dup(obj);
240 int X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit)
242 if (ex == NULL) return(0);
243 ex->critical=(crit)?0xFF:-1;
247 int X509_EXTENSION_set_data(X509_EXTENSION *ex, ASN1_OCTET_STRING *data)
251 if (ex == NULL) return(0);
252 i=M_ASN1_OCTET_STRING_set(ex->value,data->data,data->length);
257 ASN1_OBJECT *X509_EXTENSION_get_object(X509_EXTENSION *ex)
259 if (ex == NULL) return(NULL);
260 return(ex->object);
263 ASN1_OCTET_STRING *X509_EXTENSION_get_data(X509_EXTENSION *ex)
265 if (ex == NULL) return(NULL);
266 return(ex->value);
269 int X509_EXTENSION_get_critical(X509_EXTENSION *ex)
271 if (ex == NULL) return(0);
272 if(ex->critical > 0) return 1;