Lines Matching refs:dso
81 DSO_METHOD *DSO_get_method(DSO *dso) in DSO_get_method() argument
83 return(dso->meth); in DSO_get_method()
86 DSO_METHOD *DSO_set_method(DSO *dso, DSO_METHOD *meth) in DSO_set_method() argument
89 mtmp = dso->meth; in DSO_set_method()
90 dso->meth = meth; in DSO_set_method()
131 int DSO_free(DSO *dso) in DSO_free() argument
135 if(dso == NULL) in DSO_free()
141 i=CRYPTO_add(&dso->references,-1,CRYPTO_LOCK_DSO); in DSO_free()
143 REF_PRINT("DSO",dso); in DSO_free()
154 if((dso->meth->dso_unload != NULL) && !dso->meth->dso_unload(dso)) in DSO_free()
160 if((dso->meth->finish != NULL) && !dso->meth->finish(dso)) in DSO_free()
166 sk_free(dso->meth_data); in DSO_free()
167 if(dso->filename != NULL) in DSO_free()
168 OPENSSL_free(dso->filename); in DSO_free()
169 if(dso->loaded_filename != NULL) in DSO_free()
170 OPENSSL_free(dso->loaded_filename); in DSO_free()
172 OPENSSL_free(dso); in DSO_free()
176 int DSO_flags(DSO *dso) in DSO_flags() argument
178 return((dso == NULL) ? 0 : dso->flags); in DSO_flags()
182 int DSO_up_ref(DSO *dso) in DSO_up_ref() argument
184 if (dso == NULL) in DSO_up_ref()
190 CRYPTO_add(&dso->references,1,CRYPTO_LOCK_DSO); in DSO_up_ref()
194 DSO *DSO_load(DSO *dso, const char *filename, DSO_METHOD *meth, int flags) in DSO_load() argument
199 if(dso == NULL) in DSO_load()
216 ret = dso; in DSO_load()
255 void *DSO_bind_var(DSO *dso, const char *symname) in DSO_bind_var() argument
259 if((dso == NULL) || (symname == NULL)) in DSO_bind_var()
264 if(dso->meth->dso_bind_var == NULL) in DSO_bind_var()
269 if((ret = dso->meth->dso_bind_var(dso, symname)) == NULL) in DSO_bind_var()
278 DSO_FUNC_TYPE DSO_bind_func(DSO *dso, const char *symname) in DSO_bind_func() argument
282 if((dso == NULL) || (symname == NULL)) in DSO_bind_func()
287 if(dso->meth->dso_bind_func == NULL) in DSO_bind_func()
292 if((ret = dso->meth->dso_bind_func(dso, symname)) == NULL) in DSO_bind_func()
309 long DSO_ctrl(DSO *dso, int cmd, long larg, void *parg) in DSO_ctrl() argument
311 if(dso == NULL) in DSO_ctrl()
322 return dso->flags; in DSO_ctrl()
324 dso->flags = (int)larg; in DSO_ctrl()
327 dso->flags |= (int)larg; in DSO_ctrl()
332 if((dso->meth == NULL) || (dso->meth->dso_ctrl == NULL)) in DSO_ctrl()
337 return(dso->meth->dso_ctrl(dso,cmd,larg,parg)); in DSO_ctrl()
340 int DSO_set_name_converter(DSO *dso, DSO_NAME_CONVERTER_FUNC cb, in DSO_set_name_converter() argument
343 if(dso == NULL) in DSO_set_name_converter()
350 *oldcb = dso->name_converter; in DSO_set_name_converter()
351 dso->name_converter = cb; in DSO_set_name_converter()
355 const char *DSO_get_filename(DSO *dso) in DSO_get_filename() argument
357 if(dso == NULL) in DSO_get_filename()
362 return(dso->filename); in DSO_get_filename()
365 int DSO_set_filename(DSO *dso, const char *filename) in DSO_set_filename() argument
369 if((dso == NULL) || (filename == NULL)) in DSO_set_filename()
374 if(dso->loaded_filename) in DSO_set_filename()
387 if(dso->filename) in DSO_set_filename()
388 OPENSSL_free(dso->filename); in DSO_set_filename()
389 dso->filename = copied; in DSO_set_filename()
393 char *DSO_merge(DSO *dso, const char *filespec1, const char *filespec2) in DSO_merge() argument
397 if(dso == NULL || filespec1 == NULL) in DSO_merge()
403 filespec1 = dso->filename; in DSO_merge()
409 if((dso->flags & DSO_FLAG_NO_NAME_TRANSLATION) == 0) in DSO_merge()
411 if(dso->merger != NULL) in DSO_merge()
412 result = dso->merger(dso, filespec1, filespec2); in DSO_merge()
413 else if(dso->meth->dso_merger != NULL) in DSO_merge()
414 result = dso->meth->dso_merger(dso, in DSO_merge()
420 char *DSO_convert_filename(DSO *dso, const char *filename) in DSO_convert_filename() argument
424 if(dso == NULL) in DSO_convert_filename()
430 filename = dso->filename; in DSO_convert_filename()
436 if((dso->flags & DSO_FLAG_NO_NAME_TRANSLATION) == 0) in DSO_convert_filename()
438 if(dso->name_converter != NULL) in DSO_convert_filename()
439 result = dso->name_converter(dso, filename); in DSO_convert_filename()
440 else if(dso->meth->dso_name_converter != NULL) in DSO_convert_filename()
441 result = dso->meth->dso_name_converter(dso, filename); in DSO_convert_filename()
457 const char *DSO_get_loaded_filename(DSO *dso) in DSO_get_loaded_filename() argument
459 if(dso == NULL) in DSO_get_loaded_filename()
465 return(dso->loaded_filename); in DSO_get_loaded_filename()