X-Git-Url: https://git.cworth.org/git?p=fips;a=blobdiff_plain;f=dlwrap.h;h=6460dfef136b0370ba78eb45f9d47f8a19974fed;hp=cad5a62f7d86a901521fcd74e07634d4ee6ca8ed;hb=HEAD;hpb=d6ac766abe401b681282cdcf273e7fb67fff99bd diff --git a/dlwrap.h b/dlwrap.h index cad5a62..6460dfe 100644 --- a/dlwrap.h +++ b/dlwrap.h @@ -33,6 +33,18 @@ void * dlwrap_real_dlopen (const char *filename, int flag); +/* Perform a dlopen on the libfips library itself. + * + * Many places in fips need to lookup symbols within the libfips + * library itself, (and not in any other library). This function + * provides a reliable way to get a handle for performing such + * lookups. + * + * The returned handle can be passed to dlwrap_real_dlsym for the + * lookups. */ +void * +dlwrap_dlopen_libfips (void); + /* Call the *real* dlsym. We have our own wrapper for dlsym that, of * necessity must use claim the symbol 'dlsym'. So whenever anything * internal needs to call the real, underlying dlysm function, the