Updated FIPS140 initialization and added a self test for it.
[gnutls:gnutls.git] / lib / libgnutls.map
1 # libgnutls.map -- libgnutls linker version script.           -*- ld-script -*-
2 # Copyright (C) 2005-2012 Free Software Foundation, Inc.
3 #
4 # Author: Simon Josefsson
5 #
6 # This file is part of GnuTLS.
7 #
8 # The GnuTLS is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public License
10 # as published by the Free Software Foundation; either version 2.1 of
11 # the License, or (at your option) any later version.
12 #
13 # The GnuTLS is distributed in the hope that it will be
14 # useful, but WITHOUT ANY WARRANTY; without even the implied warranty
15 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 # Lesser General Public License for more details.
17 #
18 # You should have received a copy of the GNU Lesser General Public License
19 # along with this program.  If not, see <http://www.gnu.org/licenses/>
20
21 GNUTLS_1_4
22 {
23   global:
24     gnutls_alert_get;
25     gnutls_alert_get_name;
26     gnutls_alert_send;
27     gnutls_alert_send_appropriate;
28     gnutls_anon_allocate_client_credentials;
29     gnutls_anon_allocate_server_credentials;
30     gnutls_anon_free_client_credentials;
31     gnutls_anon_free_server_credentials;
32     gnutls_anon_set_params_function;
33     gnutls_anon_set_server_dh_params;
34     gnutls_anon_set_server_params_function;
35     gnutls_auth_client_get_type;
36     gnutls_auth_get_type;
37     gnutls_auth_server_get_type;
38     gnutls_bye;
39     gnutls_calc_dh_key;
40     gnutls_calc_dh_secret;
41     gnutls_calloc;
42     gnutls_certificate_activation_time_peers;
43     gnutls_certificate_allocate_credentials;
44     gnutls_certificate_client_get_request_status;
45     gnutls_certificate_client_set_retrieve_function;
46     gnutls_certificate_expiration_time_peers;
47     gnutls_certificate_free_ca_names;
48     gnutls_certificate_free_cas;
49     gnutls_certificate_free_credentials;
50     gnutls_certificate_free_crls;
51     gnutls_certificate_free_keys;
52     gnutls_certificate_get_ours;
53     gnutls_certificate_get_peers;
54     gnutls_certificate_send_x509_rdn_sequence;
55     gnutls_certificate_server_set_request;
56     gnutls_certificate_server_set_retrieve_function;
57     gnutls_certificate_set_dh_params;
58     gnutls_certificate_set_openpgp_key;
59     gnutls_certificate_set_openpgp_key_file2;
60     gnutls_certificate_set_openpgp_key_file;
61     gnutls_certificate_set_openpgp_key_mem2;
62     gnutls_certificate_set_openpgp_key_mem;
63     gnutls_certificate_set_openpgp_keyring_file;
64     gnutls_certificate_set_openpgp_keyring_mem;
65     gnutls_certificate_set_params_function;
66     gnutls_certificate_set_rsa_export_params;
67     gnutls_certificate_set_verify_flags;
68     gnutls_certificate_set_verify_limits;
69     gnutls_certificate_set_x509_crl;
70     gnutls_certificate_set_x509_crl_file;
71     gnutls_certificate_set_x509_crl_mem;
72     gnutls_certificate_set_x509_key;
73     gnutls_certificate_set_x509_key_file;
74     gnutls_certificate_set_x509_key_mem;
75     gnutls_certificate_set_x509_simple_pkcs12_file;
76     gnutls_certificate_set_x509_trust;
77     gnutls_certificate_set_x509_trust_file;
78     gnutls_certificate_set_x509_trust_mem;
79     gnutls_certificate_type_get;
80     gnutls_certificate_type_get_id;
81     gnutls_certificate_type_get_name;
82     gnutls_certificate_type_list;
83     gnutls_certificate_type_set_priority;
84     gnutls_certificate_verify_peers2;
85     gnutls_certificate_verify_peers;
86     gnutls_check_version;
87     gnutls_cipher_get;
88     gnutls_cipher_get_id;
89     gnutls_cipher_get_key_size;
90     gnutls_cipher_get_name;
91     gnutls_cipher_list;
92     gnutls_cipher_set_priority;
93     gnutls_cipher_suite_get_name;
94     gnutls_cipher_suite_info;
95     gnutls_compression_get;
96     gnutls_compression_get_id;
97     gnutls_compression_get_name;
98     gnutls_compression_list;
99     gnutls_compression_set_priority;
100     gnutls_credentials_clear;
101     gnutls_credentials_set;
102     gnutls_db_check_entry;
103     gnutls_db_get_ptr;
104     gnutls_db_remove_session;
105     gnutls_db_set_cache_expiration;
106     gnutls_db_set_ptr;
107     gnutls_db_set_remove_function;
108     gnutls_db_set_retrieve_function;
109     gnutls_db_set_store_function;
110     gnutls_deinit;
111     gnutls_dh_get_group;
112     gnutls_dh_get_peers_public_bits;
113     gnutls_dh_get_prime_bits;
114     gnutls_dh_get_pubkey;
115     gnutls_dh_get_secret_bits;
116     gnutls_dh_params_cpy;
117     gnutls_dh_params_deinit;
118     gnutls_dh_params_export_pkcs3;
119     gnutls_dh_params_export_raw;
120     gnutls_dh_params_generate2;
121     gnutls_dh_params_import_pkcs3;
122     gnutls_dh_params_import_raw;
123     gnutls_dh_params_init;
124     gnutls_dh_set_prime_bits;
125     gnutls_error_is_fatal;
126     gnutls_error_to_alert;
127     gnutls_fingerprint;
128     gnutls_free;
129     gnutls_global_deinit;
130     gnutls_global_init;
131     gnutls_global_set_log_function;
132     gnutls_global_set_log_level;
133     gnutls_global_set_mem_functions;
134     gnutls_handshake;
135     gnutls_handshake_get_last_in;
136     gnutls_handshake_get_last_out;
137     gnutls_handshake_set_max_packet_length;
138     gnutls_handshake_set_post_client_hello_function;
139     gnutls_handshake_set_private_extensions;
140     gnutls_hex2bin;
141     gnutls_hex_decode;
142     gnutls_hex_encode;
143     gnutls_init;
144     gnutls_kx_get;
145     gnutls_kx_get_id;
146     gnutls_kx_get_name;
147     gnutls_kx_list;
148     gnutls_kx_set_priority;
149     gnutls_mac_get;
150     gnutls_mac_get_id;
151     gnutls_mac_get_key_size;
152     gnutls_mac_get_name;
153     gnutls_mac_list;
154     gnutls_mac_set_priority;
155     gnutls_malloc;
156     gnutls_openpgp_count_key_names;
157     gnutls_openpgp_crt_check_hostname;
158     gnutls_openpgp_crt_deinit;
159     gnutls_openpgp_crt_export;
160     gnutls_openpgp_crt_get_auth_subkey;
161     gnutls_openpgp_crt_get_creation_time;
162     gnutls_openpgp_crt_get_expiration_time;
163     gnutls_openpgp_crt_get_fingerprint;
164     gnutls_openpgp_crt_get_key_id;
165     gnutls_openpgp_crt_get_key_usage;
166     gnutls_openpgp_crt_get_name;
167     gnutls_openpgp_crt_get_pk_algorithm;
168     gnutls_openpgp_crt_get_pk_dsa_raw;
169     gnutls_openpgp_crt_get_pk_rsa_raw;
170     gnutls_openpgp_crt_get_preferred_key_id;
171     gnutls_openpgp_crt_get_revoked_status;
172     gnutls_openpgp_crt_get_subkey_count;
173     gnutls_openpgp_crt_get_subkey_creation_time;
174     gnutls_openpgp_crt_get_subkey_expiration_time;
175     gnutls_openpgp_crt_get_subkey_fingerprint;
176     gnutls_openpgp_crt_get_subkey_id;
177     gnutls_openpgp_crt_get_subkey_idx;
178     gnutls_openpgp_crt_get_subkey_pk_algorithm;
179     gnutls_openpgp_crt_get_subkey_pk_dsa_raw;
180     gnutls_openpgp_crt_get_subkey_pk_rsa_raw;
181     gnutls_openpgp_crt_get_subkey_revoked_status;
182     gnutls_openpgp_crt_get_subkey_usage;
183     gnutls_openpgp_crt_get_version;
184     gnutls_openpgp_crt_import;
185     gnutls_openpgp_crt_init;
186     gnutls_openpgp_crt_print;
187     gnutls_openpgp_crt_set_preferred_key_id;
188     gnutls_openpgp_crt_verify_ring;
189     gnutls_openpgp_crt_verify_self;
190     gnutls_openpgp_get_key;
191     gnutls_openpgp_keyring_check_id;
192     gnutls_openpgp_keyring_deinit;
193     gnutls_openpgp_keyring_get_crt;
194     gnutls_openpgp_keyring_get_crt_count;
195     gnutls_openpgp_keyring_import;
196     gnutls_openpgp_keyring_init;
197     gnutls_openpgp_privkey_deinit;
198     gnutls_openpgp_privkey_export;
199     gnutls_openpgp_privkey_export_dsa_raw;
200     gnutls_openpgp_privkey_export_rsa_raw;
201     gnutls_openpgp_privkey_export_subkey_dsa_raw;
202     gnutls_openpgp_privkey_export_subkey_rsa_raw;
203     gnutls_openpgp_privkey_get_fingerprint;
204     gnutls_openpgp_privkey_get_key_id;
205     gnutls_openpgp_privkey_get_pk_algorithm;
206     gnutls_openpgp_privkey_get_preferred_key_id;
207     gnutls_openpgp_privkey_get_revoked_status;
208     gnutls_openpgp_privkey_get_subkey_count;
209     gnutls_openpgp_privkey_get_subkey_creation_time;
210     gnutls_openpgp_privkey_get_subkey_expiration_time;
211     gnutls_openpgp_privkey_get_subkey_fingerprint;
212     gnutls_openpgp_privkey_get_subkey_id;
213     gnutls_openpgp_privkey_get_subkey_idx;
214     gnutls_openpgp_privkey_get_subkey_pk_algorithm;
215     gnutls_openpgp_privkey_get_subkey_revoked_status;
216     gnutls_openpgp_privkey_import;
217     gnutls_openpgp_privkey_init;
218     gnutls_openpgp_privkey_set_preferred_key_id;
219     gnutls_openpgp_privkey_sign_hash;
220     gnutls_openpgp_send_cert;
221     gnutls_openpgp_set_recv_key_function;
222     gnutls_pem_base64_decode;
223     gnutls_pem_base64_decode_alloc;
224     gnutls_pem_base64_encode;
225     gnutls_pem_base64_encode_alloc;
226     gnutls_perror;
227     gnutls_pk_algorithm_get_name;
228     gnutls_pk_get_id;
229     gnutls_pk_get_name;
230     gnutls_pk_list;
231     gnutls_pk_params_init;
232     gnutls_pk_params_release;
233     gnutls_pkcs12_bag_decrypt;
234     gnutls_pkcs12_bag_deinit;
235     gnutls_pkcs12_bag_encrypt;
236     gnutls_pkcs12_bag_get_count;
237     gnutls_pkcs12_bag_get_data;
238     gnutls_pkcs12_bag_get_friendly_name;
239     gnutls_pkcs12_bag_get_key_id;
240     gnutls_pkcs12_bag_get_type;
241     gnutls_pkcs12_bag_init;
242     gnutls_pkcs12_bag_set_crl;
243     gnutls_pkcs12_bag_set_crt;
244     gnutls_pkcs12_bag_set_data;
245     gnutls_pkcs12_bag_set_friendly_name;
246     gnutls_pkcs12_bag_set_key_id;
247     gnutls_pkcs12_deinit;
248     gnutls_pkcs12_export;
249     gnutls_pkcs12_generate_mac;
250     gnutls_pkcs12_get_bag;
251     gnutls_pkcs12_import;
252     gnutls_pkcs12_init;
253     gnutls_pkcs12_set_bag;
254     gnutls_pkcs12_verify_mac;
255     gnutls_pkcs7_deinit;
256     gnutls_pkcs7_delete_crl;
257     gnutls_pkcs7_delete_crt;
258     gnutls_pkcs7_export;
259     gnutls_pkcs7_get_crl_count;
260     gnutls_pkcs7_get_crl_raw;
261     gnutls_pkcs7_get_crt_count;
262     gnutls_pkcs7_get_crt_raw;
263     gnutls_pkcs7_import;
264     gnutls_pkcs7_init;
265     gnutls_pkcs7_set_crl;
266     gnutls_pkcs7_set_crl_raw;
267     gnutls_pkcs7_set_crt;
268     gnutls_pkcs7_set_crt_raw;
269     gnutls_prf;
270     gnutls_prf_raw;
271     gnutls_priority_deinit;
272     gnutls_priority_init;
273     gnutls_priority_set;
274     gnutls_priority_set_direct;
275     gnutls_protocol_get_id;
276     gnutls_protocol_get_name;
277     gnutls_protocol_get_version;
278     gnutls_protocol_list;
279     gnutls_protocol_set_priority;
280     gnutls_psk_allocate_client_credentials;
281     gnutls_psk_allocate_server_credentials;
282     gnutls_psk_client_get_hint;
283     gnutls_psk_free_client_credentials;
284     gnutls_psk_free_server_credentials;
285     gnutls_psk_netconf_derive_key;
286     gnutls_psk_server_get_username;
287     gnutls_psk_set_client_credentials;
288     gnutls_psk_set_client_credentials_function;
289     gnutls_psk_set_params_function;
290     gnutls_psk_set_server_credentials_file;
291     gnutls_psk_set_server_credentials_function;
292     gnutls_psk_set_server_credentials_hint;
293     gnutls_psk_set_server_dh_params;
294     gnutls_psk_set_server_params_function;
295     gnutls_realloc;
296     gnutls_realloc_fast;
297     gnutls_record_check_pending;
298     gnutls_record_disable_padding;
299     gnutls_record_get_direction;
300     gnutls_record_get_max_size;
301     gnutls_record_recv;
302     gnutls_record_send;
303     gnutls_record_set_max_size;
304     gnutls_rehandshake;
305     gnutls_rsa_export_get_modulus_bits;
306     gnutls_rsa_export_get_pubkey;
307     gnutls_rsa_params_cpy;
308     gnutls_rsa_params_deinit;
309     gnutls_rsa_params_export_pkcs1;
310     gnutls_rsa_params_export_raw;
311     gnutls_rsa_params_generate2;
312     gnutls_rsa_params_import_pkcs1;
313     gnutls_rsa_params_import_raw;
314     gnutls_rsa_params_init;
315     gnutls_secure_calloc;
316     gnutls_secure_malloc;
317     gnutls_server_name_get;
318     gnutls_server_name_set;
319     gnutls_session_enable_compatibility_mode;
320     gnutls_session_get_data2;
321     gnutls_session_get_data;
322     gnutls_session_get_id;
323     gnutls_session_get_ptr;
324     gnutls_session_is_resumed;
325     gnutls_session_set_data;
326     gnutls_session_set_finished_function;
327     gnutls_session_set_ptr;
328     gnutls_set_default_export_priority;
329     gnutls_set_default_priority;
330     gnutls_sign_algorithm_get_name;
331     gnutls_sign_callback_get;
332     gnutls_sign_callback_set;
333     gnutls_sign_get_id;
334     gnutls_sign_get_name;
335     gnutls_sign_list;
336     gnutls_srp_1024_group_generator;
337     gnutls_srp_1024_group_prime;
338     gnutls_srp_1536_group_generator;
339     gnutls_srp_1536_group_prime;
340     gnutls_srp_2048_group_generator;
341     gnutls_srp_2048_group_prime;
342     gnutls_srp_allocate_client_credentials;
343     gnutls_srp_allocate_server_credentials;
344     gnutls_srp_base64_decode;
345     gnutls_srp_base64_decode_alloc;
346     gnutls_srp_base64_encode;
347     gnutls_srp_base64_encode_alloc;
348     gnutls_srp_free_client_credentials;
349     gnutls_srp_free_server_credentials;
350     gnutls_srp_server_get_username;
351     gnutls_srp_set_client_credentials;
352     gnutls_srp_set_client_credentials_function;
353     gnutls_srp_set_prime_bits;
354     gnutls_srp_set_server_credentials_file;
355     gnutls_srp_set_server_credentials_function;
356     gnutls_srp_verifier;
357     gnutls_strdup;
358     gnutls_strerror;
359     gnutls_strerror_name;
360     gnutls_supplemental_get_name;
361     gnutls_transport_get_ptr2;
362     gnutls_transport_get_ptr;
363     gnutls_transport_set_errno;
364     gnutls_transport_set_global_errno;
365     gnutls_transport_set_ptr2;
366     gnutls_transport_set_ptr;
367     gnutls_transport_set_pull_function;
368     gnutls_transport_set_push_function;
369     gnutls_x509_crl_check_issuer;
370     gnutls_x509_crl_deinit;
371     gnutls_x509_crl_export;
372     gnutls_x509_crl_get_crt_count;
373     gnutls_x509_crl_get_crt_serial;
374     gnutls_x509_crl_get_dn_oid;
375     gnutls_x509_crl_get_issuer_dn;
376     gnutls_x509_crl_get_issuer_dn_by_oid;
377     gnutls_x509_crl_get_next_update;
378     gnutls_x509_crl_get_signature;
379     gnutls_x509_crl_get_signature_algorithm;
380     gnutls_x509_crl_get_this_update;
381     gnutls_x509_crl_get_version;
382     gnutls_x509_crl_import;
383     gnutls_x509_crl_init;
384     gnutls_x509_crl_print;
385     gnutls_x509_crl_set_crt;
386     gnutls_x509_crl_set_crt_serial;
387     gnutls_x509_crl_set_next_update;
388     gnutls_x509_crl_set_this_update;
389     gnutls_x509_crl_set_version;
390     gnutls_x509_crl_sign2;
391     gnutls_x509_crl_sign;
392     gnutls_x509_crl_verify;
393     gnutls_x509_crq_deinit;
394     gnutls_x509_crq_export;
395     gnutls_x509_crq_get_attribute_by_oid;
396     gnutls_x509_crq_get_challenge_password;
397     gnutls_x509_crq_get_dn;
398     gnutls_x509_crq_get_dn_by_oid;
399     gnutls_x509_crq_get_dn_oid;
400     gnutls_x509_crq_get_pk_algorithm;
401     gnutls_x509_crq_get_version;
402     gnutls_x509_crq_import;
403     gnutls_x509_crq_init;
404     gnutls_x509_crq_set_attribute_by_oid;
405     gnutls_x509_crq_set_challenge_password;
406     gnutls_x509_crq_set_dn_by_oid;
407     gnutls_x509_crq_set_key;
408     gnutls_x509_crq_set_key_rsa_raw;
409     gnutls_x509_crq_set_version;
410     gnutls_x509_crq_sign2;
411     gnutls_x509_crq_sign;
412     gnutls_x509_crt_check_hostname;
413     gnutls_x509_crt_check_issuer;
414     gnutls_x509_crt_check_revocation;
415     gnutls_x509_crt_cpy_crl_dist_points;
416     gnutls_x509_crt_deinit;
417     gnutls_x509_crt_export;
418     gnutls_x509_crt_get_activation_time;
419     gnutls_x509_crt_get_authority_key_id;
420     gnutls_x509_crt_get_basic_constraints;
421     gnutls_x509_crt_get_ca_status;
422     gnutls_x509_crt_get_crl_dist_points;
423     gnutls_x509_crt_get_dn;
424     gnutls_x509_crt_get_dn_by_oid;
425     gnutls_x509_crt_get_dn_oid;
426     gnutls_x509_crt_get_expiration_time;
427     gnutls_x509_crt_get_extension_by_oid;
428     gnutls_x509_crt_get_extension_data;
429     gnutls_x509_crt_get_extension_info;
430     gnutls_x509_crt_get_extension_oid;
431     gnutls_x509_crt_get_fingerprint;
432     gnutls_x509_crt_get_issuer;
433     gnutls_x509_crt_get_issuer_dn;
434     gnutls_x509_crt_get_issuer_dn_by_oid;
435     gnutls_x509_crt_get_issuer_dn_oid;
436     gnutls_x509_crt_get_issuer_unique_id;
437     gnutls_x509_crt_get_key_id;
438     gnutls_x509_crt_get_key_purpose_oid;
439     gnutls_x509_crt_get_key_usage;
440     gnutls_x509_crt_get_pk_algorithm;
441     gnutls_x509_crt_get_pk_dsa_raw;
442     gnutls_x509_crt_get_pk_rsa_raw;
443     gnutls_x509_crt_get_proxy;
444     gnutls_x509_crt_get_raw_dn;
445     gnutls_x509_crt_get_raw_issuer_dn;
446     gnutls_x509_crt_get_serial;
447     gnutls_x509_crt_get_signature;
448     gnutls_x509_crt_get_signature_algorithm;
449     gnutls_x509_crt_get_subject;
450     gnutls_x509_crt_get_subject_alt_name2;
451     gnutls_x509_crt_get_subject_alt_name;
452     gnutls_x509_crt_get_subject_alt_othername_oid;
453     gnutls_x509_crt_get_subject_key_id;
454     gnutls_x509_crt_get_subject_unique_id;
455     gnutls_x509_crt_get_version;
456     gnutls_x509_crt_import;
457     gnutls_x509_crt_init;
458     gnutls_x509_crt_list_import;
459     gnutls_x509_crt_list_verify;
460     gnutls_x509_crt_print;
461     gnutls_x509_crt_set_activation_time;
462     gnutls_x509_crt_set_authority_key_id;
463     gnutls_x509_crt_set_basic_constraints;
464     gnutls_x509_crt_set_ca_status;
465     gnutls_x509_crt_set_crl_dist_points2;
466     gnutls_x509_crt_set_crl_dist_points;
467     gnutls_x509_crt_set_crq;
468     gnutls_x509_crt_set_dn_by_oid;
469     gnutls_x509_crt_set_expiration_time;
470     gnutls_x509_crt_set_extension_by_oid;
471     gnutls_x509_crt_set_issuer_dn_by_oid;
472     gnutls_x509_crt_set_key;
473     gnutls_x509_crt_set_key_purpose_oid;
474     gnutls_x509_crt_set_key_usage;
475     gnutls_x509_crt_set_proxy;
476     gnutls_x509_crt_set_proxy_dn;
477     gnutls_x509_crt_set_serial;
478     gnutls_x509_crt_set_subject_alt_name;
479     gnutls_x509_crt_set_subject_alternative_name;
480     gnutls_x509_crt_set_subject_key_id;
481     gnutls_x509_crt_set_version;
482     gnutls_x509_crt_sign2;
483     gnutls_x509_crt_sign;
484     gnutls_x509_crt_verify;
485     gnutls_x509_crt_verify_data;
486     gnutls_x509_dn_deinit;
487     gnutls_x509_dn_export;
488     gnutls_x509_dn_get_rdn_ava;
489     gnutls_x509_dn_import;
490     gnutls_x509_dn_init;
491     gnutls_x509_dn_oid_known;
492     gnutls_x509_privkey_cpy;
493     gnutls_x509_privkey_deinit;
494     gnutls_x509_privkey_export;
495     gnutls_x509_privkey_export_dsa_raw;
496     gnutls_x509_privkey_export_pkcs8;
497     gnutls_x509_privkey_export_rsa_raw;
498     gnutls_x509_privkey_fix;
499     gnutls_x509_privkey_generate;
500     gnutls_x509_privkey_get_key_id;
501     gnutls_x509_privkey_get_pk_algorithm;
502     gnutls_x509_privkey_import;
503     gnutls_x509_privkey_import_dsa_raw;
504     gnutls_x509_privkey_import_pkcs8;
505     gnutls_x509_privkey_import_rsa_raw;
506     gnutls_x509_privkey_init;
507     gnutls_x509_privkey_sign_data;
508     gnutls_x509_privkey_sign_hash;
509     gnutls_x509_rdn_get;
510     gnutls_x509_rdn_get_by_oid;
511     gnutls_x509_rdn_get_oid;
512
513   local:
514     *;
515 };
516
517 GNUTLS_2_8
518 {
519   global:
520     gnutls_certificate_set_x509_simple_pkcs12_mem;
521     gnutls_x509_crl_get_authority_key_id;
522     gnutls_x509_crl_get_extension_data;
523     gnutls_x509_crl_get_extension_info;
524     gnutls_x509_crl_get_extension_oid;
525     gnutls_x509_crl_get_number;
526     gnutls_x509_crl_set_authority_key_id;
527     gnutls_x509_crl_set_number;
528     gnutls_x509_crq_get_attribute_data;
529     gnutls_x509_crq_get_attribute_info;
530     gnutls_x509_crq_get_basic_constraints;
531     gnutls_x509_crq_get_extension_by_oid;
532     gnutls_x509_crq_get_extension_data;
533     gnutls_x509_crq_get_extension_info;
534     gnutls_x509_crq_get_key_id;
535     gnutls_x509_crq_get_key_purpose_oid;
536     gnutls_x509_crq_get_key_rsa_raw;
537     gnutls_x509_crq_get_key_usage;
538     gnutls_x509_crq_get_subject_alt_name;
539     gnutls_x509_crq_get_subject_alt_othername_oid;
540     gnutls_x509_crq_print;
541     gnutls_x509_crq_set_basic_constraints;
542     gnutls_x509_crq_set_key_purpose_oid;
543     gnutls_x509_crq_set_key_usage;
544     gnutls_x509_crq_set_subject_alt_name;
545     gnutls_x509_crt_get_verify_algorithm;
546     gnutls_x509_crt_set_crq_extensions;
547     gnutls_x509_crt_verify_hash;
548     gnutls_session_ticket_key_generate;
549     gnutls_session_ticket_enable_client;
550     gnutls_session_ticket_enable_server;
551 } GNUTLS_1_4;
552
553 GNUTLS_2_10
554 {
555   global:
556     gnutls_x509_crt_get_issuer_alt_name2;
557     gnutls_x509_crt_get_issuer_alt_name;
558     gnutls_x509_crt_get_issuer_alt_othername_oid;
559     gnutls_sign_algorithm_get_requested;
560     gnutls_cipher_init;
561     gnutls_cipher_encrypt;
562     gnutls_cipher_decrypt;
563     gnutls_cipher_deinit;
564     gnutls_cipher_get_block_size;
565     gnutls_hash_init;
566     gnutls_hash_get_len;
567     gnutls_hash;
568     gnutls_hash_fast;
569     gnutls_hash_deinit;
570     gnutls_hash_output;
571     gnutls_hmac_init;
572     gnutls_hmac_get_len;
573     gnutls_hmac;
574     gnutls_hmac_fast;
575     gnutls_hmac_deinit;
576     gnutls_hmac_output;
577     gnutls_certificate_set_verify_function;
578     gnutls_safe_renegotiation_status;
579 } GNUTLS_2_8;
580
581 GNUTLS_2_12
582 {
583   global:
584         gnutls_certificate_set_retrieve_function;
585         gnutls_pkcs11_init;
586         gnutls_pkcs11_deinit;
587         gnutls_pkcs11_set_pin_function;
588         gnutls_pkcs11_set_token_function;
589         gnutls_pkcs11_add_provider;
590         gnutls_pkcs11_obj_init;
591         gnutls_pkcs11_obj_import_url;
592         gnutls_pkcs11_obj_export_url;
593         gnutls_pkcs11_obj_deinit;
594         gnutls_pkcs11_obj_list_import_url;
595         gnutls_x509_crt_import_pkcs11;
596         gnutls_pkcs11_obj_get_type;
597         gnutls_x509_crt_list_import_pkcs11;
598         gnutls_x509_crt_import_pkcs11_url;
599         gnutls_pkcs11_obj_get_info;
600         gnutls_pkcs11_token_get_info;
601         gnutls_pkcs11_token_get_url;
602         gnutls_pkcs11_privkey_init;
603         gnutls_pkcs11_privkey_deinit;
604         gnutls_pkcs11_privkey_get_pk_algorithm;
605         gnutls_pkcs11_privkey_get_info;
606         gnutls_pkcs11_privkey_import_url;
607         gnutls_pkcs11_obj_export;
608         gnutls_pkcs11_type_get_name;
609         gnutls_privkey_init;
610         gnutls_privkey_deinit;
611         gnutls_privkey_get_pk_algorithm;
612         gnutls_privkey_get_type;
613         gnutls_privkey_import_pkcs11;
614         gnutls_privkey_import_x509;
615         gnutls_privkey_import_openpgp;
616         gnutls_privkey_decrypt_data;
617         gnutls_pkcs11_privkey_export_url;
618         gnutls_x509_crq_privkey_sign;
619         gnutls_x509_crl_privkey_sign;
620         gnutls_x509_crt_privkey_sign;
621         gnutls_pubkey_init;
622         gnutls_pubkey_deinit;
623         gnutls_pubkey_get_pk_algorithm;
624         gnutls_pubkey_import_x509;
625         gnutls_pubkey_import_openpgp;
626         gnutls_pubkey_get_pk_rsa_raw;
627         gnutls_pubkey_get_pk_dsa_raw;
628         gnutls_pubkey_export;
629         gnutls_pubkey_get_key_id;
630         gnutls_pubkey_get_key_usage;
631         gnutls_pubkey_import_pkcs11;
632         gnutls_pubkey_import_dsa_raw;
633         gnutls_pubkey_import_rsa_raw;
634         gnutls_pubkey_import_pkcs11_url;
635         gnutls_pubkey_get_verify_algorithm;
636         gnutls_pubkey_verify_hash;
637         gnutls_pubkey_import;
638         gnutls_x509_crt_set_pubkey;
639         gnutls_x509_crq_set_pubkey;
640         gnutls_pkcs11_copy_x509_crt;
641         gnutls_pkcs11_copy_x509_privkey;
642         gnutls_pkcs11_delete_url;
643         gnutls_x509_privkey_export_rsa_raw2;
644         gnutls_pubkey_get_preferred_hash_algorithm;
645         gnutls_x509_crt_get_preferred_hash_algorithm;
646         gnutls_global_set_mutex;
647         gnutls_transport_set_vec_push_function;
648         gnutls_transport_set_errno_function;
649         gnutls_sec_param_to_pk_bits;
650         gnutls_sec_param_get_name;
651         gnutls_pk_bits_to_sec_param;
652         gnutls_rnd;
653         gnutls_cipher_encrypt2;
654         gnutls_cipher_decrypt2;
655         gnutls_openpgp_privkey_sec_param;
656         gnutls_x509_privkey_sec_param;
657         gnutls_session_channel_binding;
658         gnutls_pkcs11_copy_secret_key;
659         gnutls_pkcs11_token_init;
660         gnutls_pkcs11_token_set_pin;
661         gnutls_pkcs11_token_get_mechanism;
662         gnutls_privkey_sign_hash;
663         gnutls_privkey_sign_data;
664         gnutls_openpgp_crt_verify_hash;
665         gnutls_pubkey_import_privkey;
666         gnutls_pubkey_verify_data;
667         gnutls_certificate_get_issuer;
668         gnutls_x509_crq_verify;
669         gnutls_global_set_time_function;
670 } GNUTLS_2_10;
671
672 GNUTLS_3_0_0 {
673   global:
674         gnutls_x509_trust_list_verify_crt;
675         gnutls_x509_trust_list_add_crls;
676         gnutls_x509_trust_list_add_cas;
677         gnutls_x509_trust_list_init;
678         gnutls_x509_trust_list_deinit;
679         gnutls_x509_crl_list_import;
680         gnutls_x509_crl_list_import2;
681         gnutls_x509_crt_list_import2;
682         gnutls_cipher_tag;
683         gnutls_cipher_add_auth;
684         gnutls_dtls_set_timeouts;
685         gnutls_transport_set_pull_timeout_function;
686         gnutls_dtls_get_mtu;
687         gnutls_dtls_set_mtu;
688         gnutls_record_recv_seq;
689         gnutls_key_generate;
690         gnutls_dtls_cookie_verify;
691         gnutls_dtls_cookie_send;
692         gnutls_dtls_prestate_set;
693         gnutls_dtls_get_data_mtu;
694         gnutls_dtls_set_data_mtu;
695         gnutls_cipher_set_iv;
696         gnutls_pcert_deinit;
697         gnutls_pcert_import_x509;
698         gnutls_pcert_import_x509_raw;
699         gnutls_pcert_import_openpgp;
700         gnutls_pcert_import_openpgp_raw;
701         gnutls_pubkey_get_openpgp_key_id;
702         gnutls_certificate_set_retrieve_function2;
703         gnutls_x509_trust_list_get_issuer;
704         gnutls_global_set_audit_log_function;
705         gnutls_ecc_curve_get_name;
706         gnutls_ecc_curve_get_size;
707         gnutls_ecc_curve_get;
708         gnutls_pubkey_get_pk_ecc_raw;
709         gnutls_x509_privkey_export_ecc_raw;
710         gnutls_x509_privkey_import_ecc_raw;
711         gnutls_pubkey_verify_data2;
712         gnutls_x509_trust_list_verify_named_crt;
713         gnutls_x509_trust_list_add_named_crt;
714         gnutls_alert_get_strname;
715         gnutls_pcert_list_import_x509_raw;
716         gnutls_pkcs11_privkey_generate;
717         gnutls_pubkey_import_ecc_raw;
718         gnutls_pubkey_import_ecc_raw2;
719         gnutls_record_get_discarded;
720         gnutls_x509_crt_get_authority_info_access;
721         gnutls_ocsp_req_add_cert;
722         gnutls_ocsp_req_add_cert_id;
723         gnutls_ocsp_req_deinit;
724         gnutls_ocsp_req_export;
725         gnutls_ocsp_req_get_cert_id;
726         gnutls_ocsp_req_get_extension;
727         gnutls_ocsp_req_get_nonce;
728         gnutls_ocsp_req_get_version;
729         gnutls_ocsp_req_import;
730         gnutls_ocsp_req_init;
731         gnutls_ocsp_req_print;
732         gnutls_ocsp_req_randomize_nonce;
733         gnutls_ocsp_req_set_extension;
734         gnutls_ocsp_req_set_nonce;
735         gnutls_ocsp_resp_deinit;
736         gnutls_ocsp_resp_export;
737         gnutls_ocsp_resp_get_certs;
738         gnutls_ocsp_resp_get_extension;
739         gnutls_ocsp_resp_get_nonce;
740         gnutls_ocsp_resp_get_produced;
741         gnutls_ocsp_resp_get_responder;
742         gnutls_ocsp_resp_get_response;
743         gnutls_ocsp_resp_get_signature;
744         gnutls_ocsp_resp_get_signature_algorithm;
745         gnutls_ocsp_resp_get_single;
746         gnutls_ocsp_resp_get_status;
747         gnutls_ocsp_resp_get_version;
748         gnutls_ocsp_resp_import;
749         gnutls_ocsp_resp_init;
750         gnutls_ocsp_resp_print;
751         gnutls_ocsp_resp_verify;
752         gnutls_ocsp_resp_verify_direct;
753         gnutls_privkey_import_ext;
754         gnutls_certificate_set_key;
755         gnutls_srp_3072_group_generator;
756         gnutls_srp_3072_group_prime;
757         gnutls_srp_4096_group_generator;
758         gnutls_srp_4096_group_prime;
759         gnutls_x509_privkey_verify_params;
760         gnutls_priority_get_cipher_suite_index;
761         gnutls_random_art;
762         gnutls_pubkey_encrypt_data;
763         gnutls_x509_dn_oid_name;
764         gnutls_session_resumption_requested;
765         gnutls_pkcs11_reinit;
766         gnutls_x509_crt_get_authority_key_gn_serial;
767         gnutls_x509_crl_get_authority_key_gn_serial;
768         gnutls_ecc_curve_list;
769         gnutls_priority_certificate_type_list;
770         gnutls_priority_sign_list;
771         gnutls_priority_protocol_list;
772         gnutls_priority_compression_list;
773         gnutls_priority_ecc_curve_list;
774         gnutls_verify_stored_pubkey;
775         gnutls_store_commitment;
776         gnutls_store_pubkey;
777         gnutls_dtls_get_timeout;
778         gnutls_tdb_init;
779         gnutls_tdb_set_store_func;
780         gnutls_tdb_set_store_commitment_func;
781         gnutls_tdb_set_verify_func;
782         gnutls_tdb_deinit;
783         gnutls_x509_crt_set_authority_info_access;
784         gnutls_x509_crt_get_private_key_usage_period;
785         gnutls_x509_crq_get_private_key_usage_period;
786         gnutls_x509_crt_set_private_key_usage_period;
787         gnutls_x509_crq_set_private_key_usage_period;
788         gnutls_session_get_random;
789         gnutls_pubkey_verify_hash2;
790         gnutls_pk_to_sign;
791         gnutls_certificate_set_x509_system_trust;
792         gnutls_session_set_premaster;
793         gnutls_ocsp_resp_check_crt;
794 } GNUTLS_2_12;
795
796 GNUTLS_3_1_0 {
797   global:
798         gnutls_pkcs11_get_pin_function;
799         gnutls_pkcs11_obj_list_import_url2;
800         gnutls_x509_trust_list_add_system_trust;
801         gnutls_x509_trust_list_add_trust_file;
802         gnutls_x509_trust_list_add_trust_mem;
803         gnutls_pkcs12_simple_parse;
804         gnutls_privkey_import_openpgp_raw;
805         gnutls_privkey_import_x509_raw;
806         gnutls_privkey_import_pkcs11_url;
807         gnutls_load_file;
808         gnutls_x509_privkey_import_openssl;
809         gnutls_x509_privkey_import2;
810         gnutls_privkey_import_ext2;
811         gnutls_privkey_import_tpm_raw;
812         gnutls_tpm_privkey_generate;
813         gnutls_pubkey_import_tpm_raw;
814         gnutls_tpm_key_list_deinit;
815         gnutls_tpm_key_list_get_url;
816         gnutls_tpm_get_registered;
817         gnutls_tpm_privkey_delete;
818         gnutls_pubkey_import_tpm_url;
819         gnutls_privkey_import_tpm_url;
820         gnutls_privkey_import_url;
821         gnutls_pubkey_import_url;
822         gnutls_url_is_supported;
823         gnutls_privkey_set_pin_function;
824         gnutls_pubkey_set_pin_function;
825         gnutls_pkcs11_obj_set_pin_function;
826         gnutls_pkcs11_privkey_set_pin_function;
827         gnutls_certificate_set_pin_function;
828         gnutls_x509_crt_set_pin_function;
829         gnutls_handshake_set_timeout;
830         gnutls_sign_get_pk_algorithm;
831         gnutls_sign_get_hash_algorithm;
832         gnutls_sign_algorithm_get;
833         gnutls_x509_privkey_get_pk_algorithm2;
834         gnutls_heartbeat_ping;
835         gnutls_heartbeat_pong;
836         gnutls_heartbeat_enable;
837         gnutls_heartbeat_allowed;
838         gnutls_heartbeat_get_timeout;
839         gnutls_heartbeat_set_timeouts;
840         gnutls_certificate_set_ocsp_status_request_function;
841         gnutls_certificate_set_ocsp_status_request_file;
842         gnutls_ocsp_status_request_enable_client;
843         gnutls_ocsp_status_request_get;
844         gnutls_dh_params_export2_pkcs3;
845         gnutls_pubkey_export2;
846         gnutls_x509_crt_export2;
847         gnutls_x509_dn_export2;
848         gnutls_x509_crl_export2;
849         gnutls_pkcs7_export2;
850         gnutls_x509_privkey_export2;
851         gnutls_x509_privkey_export2_pkcs8;
852         gnutls_x509_crq_export2;
853         gnutls_openpgp_crt_export2;
854         gnutls_openpgp_privkey_export2;
855         gnutls_pkcs11_obj_export2;
856         gnutls_pkcs12_export2;
857         gnutls_pubkey_import_openpgp_raw;
858         gnutls_pubkey_import_x509_raw;
859         gnutls_certificate_get_peers_subkey_id;
860         gnutls_session_get_id2;
861         gnutls_certificate_verify_peers3;
862         gnutls_certificate_verification_status_print;
863         gnutls_srtp_get_profile_id;
864         gnutls_srtp_get_profile_name;
865         gnutls_srtp_get_selected_profile;
866         gnutls_srtp_set_profile;
867         gnutls_srtp_set_profile_direct;
868         gnutls_srtp_get_keys;
869         gnutls_srtp_get_mki;
870         gnutls_srtp_set_mki;
871         gnutls_ocsp_status_request_is_checked;
872         gnutls_sign_is_secure;
873         gnutls_pkcs11_privkey_generate2;
874         gnutls_x509_crt_get_policy;
875         gnutls_certificate_policy_release;
876         gnutls_x509_crt_set_policy;
877         gnutls_pubkey_import_x509_crq;
878         gnutls_pubkey_print;
879         gnutls_record_get_random_padding_status;
880         gnutls_x509_crt_set_dn;
881         gnutls_x509_crq_set_dn;
882         gnutls_x509_crt_set_issuer_dn;
883         gnutls_session_force_valid;
884         gnutls_record_can_use_length_hiding;
885         gnutls_record_set_max_empty_records;
886         gnutls_range_split;
887         gnutls_record_send_range;
888         gnutls_db_check_entry_time;
889         gnutls_handshake_set_server_random;
890         gnutls_record_cork;
891         gnutls_record_uncork;
892         gnutls_transport_set_int2;
893         gnutls_transport_get_int2;
894         gnutls_transport_get_int;
895         gnutls_pkcs11_privkey_status;
896         gnutls_x509_crt_get_issuer_dn2;
897         gnutls_x509_crt_get_dn2;
898         gnutls_x509_crl_get_issuer_dn2;
899         gnutls_x509_crq_get_dn2;
900         gnutls_x509_trust_list_remove_trust_mem;
901         gnutls_x509_trust_list_remove_trust_file;
902         gnutls_x509_trust_list_remove_cas;
903         gnutls_session_get_desc;
904         gnutls_privkey_sign_raw_data;
905         gnutls_privkey_status;
906         gnutls_cipher_get_iv_size;
907         gnutls_hmac_set_nonce;
908         gnutls_sign_algorithm_get_client;
909         gnutls_certificate_set_x509_key_mem2;
910         gnutls_certificate_set_x509_key_file2;
911         gnutls_alpn_get_selected_protocol;
912         gnutls_alpn_set_protocols;
913         gnutls_session_set_id;
914         gnutls_certificate_set_trust_list;
915         gnutls_cipher_get_tag_size;
916         gnutls_record_overhead_size;
917         gnutls_handshake_set_hook_function;
918         gnutls_handshake_description_get_name;
919         gnutls_digest_list;
920         gnutls_digest_get_id;
921         gnutls_digest_get_name;
922         gnutls_priority_mac_list;
923         gnutls_priority_cipher_list;
924         gnutls_priority_kx_list;
925         gnutls_record_set_timeout;
926         gnutls_pkcs11_token_get_random;
927         gnutls_pkcs11_obj_export3;
928         gnutls_pkcs11_get_raw_issuer;
929         gnutls_est_record_overhead_size;
930         gnutls_cipher_self_test;
931         gnutls_pk_self_test;
932         gnutls_mac_self_test;
933         gnutls_digest_self_test;
934         gnutls_privkey_generate;
935
936         gnutls_fips140_mode_enabled;
937 } GNUTLS_3_0_0;
938
939 GNUTLS_PRIVATE {
940   global:
941     # Internal symbols needed by libgnutls-extra:
942     gnutls_crypto_single_mac_register;
943     gnutls_crypto_single_digest_register;
944     _gnutls_log_level;
945     _gnutls_write_uint24;
946     _gnutls_log;
947     _gnutls_PRF;
948     _gnutls_send_int;
949     _gnutls_read_uint24;
950     _gnutls_get_cred;
951     _gnutls_recv_int;
952     # Internal symbols needed by libgnutls-openssl:
953     _gnutls_pkix1_asn;
954     _gnutls_x509_parse_dn_oid;
955     _gnutls_asn2err;
956     _gnutls_ext_get_session_data;
957     _gnutls_ext_set_session_data;
958     _gnutls_ext_register;
959     _gnutls_buffer_append_prefix;
960     _gnutls_buffer_append_data;
961     _gnutls_buffer_clear;
962     _gnutls_buffer_append_data_prefix;
963     _gnutls_buffer_pop_data;
964     _gnutls_buffer_pop_prefix;
965     _gnutls_buffer_init;
966     _gnutls_buffer_append_str;
967     _gnutls_buffer_to_datum;
968
969     # Internal symbols used by fips-test
970     _gnutls_fips140_simulate_error;
971     # Internal symbols needed by psktool:
972
973     # Internal symbols needed by gnutls-cli-debug:
974     _gnutls_rsa_pms_set_version;
975     _gnutls_record_set_default_version;
976     # Internal symbols needed by tests/gc:
977     _gnutls_pbkdf2_sha1;
978     # Internal symbols needed by tests/mpi:
979     _gnutls_mpi_ops;
980     _gnutls_mpi_randomize;
981     _gnutls_mpi_log;
982     _gnutls_mpi_release;
983     # Internal symbols needed by tests/pkcs12_s2k:
984     _gnutls_pkcs12_string_to_key;
985     _gnutls_bin2hex;
986   local:
987     *;
988 };