gnutls

dlsymdlopen

3.6.7.1

8 / 4928 files match, 6 filtered matches.

lib/tpm.c



110 | static void *tpm_dl = NULL;
111 | 
112 | #define _DLSYM(dl, sym) \
113 | 	p##sym = dlsym(dl, #sym); \
114 | 	if (p##sym == NULL) { \
115 | 		dlclose(dl); \


lib/fips.c



153 | 	if (dl == NULL)
154 | 		return gnutls_assert_val(GNUTLS_E_FILE_ERROR);
155 | 
156 | 	sym = dlsym(dl, symbol);
157 | 	if (sym == NULL) {
158 | 		ret = gnutls_assert_val(GNUTLS_E_FILE_ERROR);


tests/pkcs11/pkcs11-privkey-safenet-always-auth.c



97 | 			exit(1);
98 | 		}
99 | 
100 | 		pflags = dlsym(dl, "pkcs11_mock_flags");
101 | 		if (pflags == NULL) {
102 | 			fail("could find pkcs11_mock_flags\n");


tests/pkcs11/pkcs11-privkey-always-auth.c



98 | 			exit(1);
99 | 		}
100 | 
101 | 		pflags = dlsym(dl, "pkcs11_mock_flags");
102 | 		if (pflags == NULL) {
103 | 			fail("could find pkcs11_mock_flags\n");


tests/pkcs11/pkcs11-import-url-privkey.c



103 | 			exit(1);
104 | 		}
105 | 
106 | 		pflags = dlsym(dl, "pkcs11_mock_flags");
107 | 		if (pflags == NULL) {
108 | 			fail("could find pkcs11_mock_flags\n");


fuzz/gnutls_set_trust_file_fuzzer.c



32 | FILE *fopen(const char *pathname, const char *mode)
33 | {
34 | 	FILE *(*libc_fopen)(const char *, const char *) =
35 | 		(FILE *(*)(const char *, const char *)) dlsym (RTLD_NEXT, "fopen");
36 | 
37 | 	if (!strcmp(pathname, "ca_or_crl"))