glib2 1.1.4-x86-mingw32 → 1.1.5-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +17 -3
- data/ext/glib2/rbglib.h +1 -1
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/gnome2-raketask.rb +32 -28
- data/lib/gnome2-win32-binary-build-task.rb +191 -0
- data/lib/{gnome2-win32-binary-downloader.rb → gnome2-win32-binary-download-task.rb} +62 -19
- data/vendor/local/bin/asn1Coding.exe +0 -0
- data/vendor/local/bin/asn1Decoding.exe +0 -0
- data/vendor/local/bin/asn1Parser.exe +0 -0
- data/vendor/local/bin/certtool.exe +0 -0
- data/vendor/local/bin/dumpsexp.exe +0 -0
- data/vendor/local/bin/gnutls-cli-debug.exe +0 -0
- data/vendor/local/bin/gnutls-cli.exe +0 -0
- data/vendor/local/bin/gnutls-serv.exe +0 -0
- data/vendor/local/bin/gpg-error.exe +0 -0
- data/vendor/local/bin/hmac256.exe +0 -0
- data/vendor/local/bin/libgcrypt-11.dll +0 -0
- data/vendor/local/bin/libgcrypt-config +177 -0
- data/vendor/local/bin/libgnutls-26.dll +0 -0
- data/vendor/local/bin/libgnutls-extra-26.dll +0 -0
- data/vendor/local/bin/libgnutls-openssl-26.dll +0 -0
- data/vendor/local/bin/libgpg-error-0.dll +0 -0
- data/vendor/local/bin/libtasn1-3.dll +0 -0
- data/vendor/local/bin/psktool.exe +0 -0
- data/vendor/local/bin/srptool.exe +0 -0
- data/vendor/local/gnutls.README.txt +6 -0
- data/vendor/local/include/gcrypt-module.h +226 -0
- data/vendor/local/include/gcrypt.h +1826 -0
- data/vendor/local/include/gnutls/compat.h +105 -0
- data/vendor/local/include/gnutls/crypto.h +73 -0
- data/vendor/local/include/gnutls/extra.h +137 -0
- data/vendor/local/include/gnutls/gnutls.h +1333 -0
- data/vendor/local/include/gnutls/gnutlsxx.h +388 -0
- data/vendor/local/include/gnutls/openpgp.h +283 -0
- data/vendor/local/include/gnutls/openssl.h +335 -0
- data/vendor/local/include/gnutls/pkcs12.h +106 -0
- data/vendor/local/include/gnutls/x509.h +672 -0
- data/vendor/local/include/gpg-error.h +651 -0
- data/vendor/local/include/libtasn1.h +246 -0
- data/vendor/local/lib/gio/modules/libgiognutls.a +0 -0
- data/vendor/local/lib/gio/modules/libgiognutls.dll +0 -0
- data/vendor/local/lib/gio/modules/libgiognutls.dll.a +0 -0
- data/vendor/local/lib/gio/modules/libgiognutls.la +41 -0
- data/vendor/local/lib/libgcrypt.def +237 -0
- data/vendor/local/lib/libgcrypt.dll.a +0 -0
- data/vendor/local/lib/libgnutls-extra.dll.a +0 -0
- data/vendor/local/lib/libgnutls-openssl.dll.a +0 -0
- data/vendor/local/lib/libgnutls.dll.a +0 -0
- data/vendor/local/lib/libgnutlsxx.dll.a +0 -0
- data/vendor/local/lib/libgpg-error.dll.a +0 -0
- data/vendor/local/lib/libtasn1.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gnutls.pc +23 -0
- data/vendor/local/manifest/gnutls-dev_2.4.2-1_win32.mft +593 -0
- data/vendor/local/manifest/gnutls_2.4.2-1_win32.mft +8 -0
- data/vendor/local/share/aclocal/gpg-error.m4 +65 -0
- data/vendor/local/share/aclocal/libgcrypt.m4 +108 -0
- data/vendor/local/share/aclocal/libgnutls-extra.m4 +161 -0
- data/vendor/local/share/aclocal/libgnutls.m4 +160 -0
- data/vendor/local/share/aclocal/libtasn1.m4 +160 -0
- data/vendor/local/share/common-lisp/source/gpg-error/gpg-error-codes.lisp +417 -0
- data/vendor/local/share/common-lisp/source/gpg-error/gpg-error-package.lisp +64 -0
- data/vendor/local/share/common-lisp/source/gpg-error/gpg-error.asd +36 -0
- data/vendor/local/share/common-lisp/source/gpg-error/gpg-error.lisp +236 -0
- data/vendor/local/share/info/gcrypt.info +6243 -0
- data/vendor/local/share/info/gnutls-certificate-user-use-case.png +0 -0
- data/vendor/local/share/info/gnutls-client-server-use-case.png +0 -0
- data/vendor/local/share/info/gnutls-extensions_st.png +0 -0
- data/vendor/local/share/info/gnutls-handshake-sequence.png +0 -0
- data/vendor/local/share/info/gnutls-handshake-state.png +0 -0
- data/vendor/local/share/info/gnutls-internals.png +0 -0
- data/vendor/local/share/info/gnutls-layers.png +0 -0
- data/vendor/local/share/info/gnutls-logo.png +0 -0
- data/vendor/local/share/info/gnutls-mod_auth_st.png +0 -0
- data/vendor/local/share/info/gnutls-objects.png +0 -0
- data/vendor/local/share/info/gnutls-pgp.png +0 -0
- data/vendor/local/share/info/gnutls-x509.png +0 -0
- data/vendor/local/share/info/gnutls.info +708 -0
- data/vendor/local/share/info/gnutls.info-1 +10467 -0
- data/vendor/local/share/info/gnutls.info-2 +7896 -0
- data/vendor/local/share/info/gnutls.info-3 +1899 -0
- data/vendor/local/share/info/libtasn1.info +2993 -0
- data/vendor/local/share/license/glib-networking/AUTHORS +0 -0
- data/vendor/local/share/license/glib-networking/COPYING +482 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/man/man1/asn1Coding.1 +46 -0
- data/vendor/local/share/man/man1/asn1Decoding.1 +41 -0
- data/vendor/local/share/man/man1/asn1Parser.1 +49 -0
- data/vendor/local/share/man/man1/certtool.1 +159 -0
- data/vendor/local/share/man/man1/gnutls-cli-debug.1 +31 -0
- data/vendor/local/share/man/man1/gnutls-cli.1 +166 -0
- data/vendor/local/share/man/man1/gnutls-serv.1 +134 -0
- data/vendor/local/share/man/man1/psktool.1 +31 -0
- data/vendor/local/share/man/man1/srptool.1 +73 -0
- data/vendor/local/share/man/man3/asn1_array2tree.3 +47 -0
- data/vendor/local/share/man/man3/asn1_bit_der.3 +39 -0
- data/vendor/local/share/man/man3/asn1_check_version.3 +39 -0
- data/vendor/local/share/man/man3/asn1_copy_node.3 +39 -0
- data/vendor/local/share/man/man3/asn1_create_element.3 +45 -0
- data/vendor/local/share/man/man3/asn1_delete_element.3 +39 -0
- data/vendor/local/share/man/man3/asn1_delete_structure.3 +37 -0
- data/vendor/local/share/man/man3/asn1_der_coding.3 +52 -0
- data/vendor/local/share/man/man3/asn1_der_decoding.3 +50 -0
- data/vendor/local/share/man/man3/asn1_der_decoding_element.3 +54 -0
- data/vendor/local/share/man/man3/asn1_der_decoding_startEnd.3 +58 -0
- data/vendor/local/share/man/man3/asn1_expand_any_defined_by.3 +45 -0
- data/vendor/local/share/man/man3/asn1_expand_octet_string.3 +51 -0
- data/vendor/local/share/man/man3/asn1_find_node.3 +38 -0
- data/vendor/local/share/man/man3/asn1_find_structure_from_oid.3 +37 -0
- data/vendor/local/share/man/man3/asn1_get_bit_der.3 +43 -0
- data/vendor/local/share/man/man3/asn1_get_length_der.3 +38 -0
- data/vendor/local/share/man/man3/asn1_get_octet_der.3 +43 -0
- data/vendor/local/share/man/man3/asn1_get_tag_der.3 +41 -0
- data/vendor/local/share/man/man3/asn1_length_der.3 +36 -0
- data/vendor/local/share/man/man3/asn1_number_of_elements.3 +43 -0
- data/vendor/local/share/man/man3/asn1_octet_der.3 +37 -0
- data/vendor/local/share/man/man3/asn1_parser2array.3 +58 -0
- data/vendor/local/share/man/man3/asn1_parser2tree.3 +55 -0
- data/vendor/local/share/man/man3/asn1_print_structure.3 +40 -0
- data/vendor/local/share/man/man3/asn1_read_tag.3 +46 -0
- data/vendor/local/share/man/man3/asn1_read_value.3 +92 -0
- data/vendor/local/share/man/man3/asn1_write_value.3 +136 -0
- data/vendor/local/share/man/man3/gnutls_alert_get.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_alert_get_name.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_alert_send.3 +47 -0
- data/vendor/local/share/man/man3/gnutls_alert_send_appropriate.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_anon_allocate_client_credentials.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_anon_allocate_server_credentials.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_anon_free_client_credentials.3 +34 -0
- data/vendor/local/share/man/man3/gnutls_anon_free_server_credentials.3 +34 -0
- data/vendor/local/share/man/man3/gnutls_anon_set_params_function.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_anon_set_server_dh_params.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_anon_set_server_params_function.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_auth_client_get_type.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_auth_get_type.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_auth_server_get_type.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_bye.3 +61 -0
- data/vendor/local/share/man/man3/gnutls_certificate_activation_time_peers.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_certificate_allocate_credentials.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_certificate_client_get_request_status.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_certificate_client_set_retrieve_function.3 +58 -0
- data/vendor/local/share/man/man3/gnutls_certificate_expiration_time_peers.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_certificate_free_ca_names.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_certificate_free_cas.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_certificate_free_credentials.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_certificate_free_crls.3 +34 -0
- data/vendor/local/share/man/man3/gnutls_certificate_free_keys.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_certificate_get_openpgp_keyring.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_certificate_get_ours.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_certificate_get_peers.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_certificate_get_x509_cas.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_certificate_get_x509_crls.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_certificate_send_x509_rdn_sequence.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_certificate_server_set_request.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_certificate_server_set_retrieve_function.3 +47 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_dh_params.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key_file.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key_file2.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key_mem.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key_mem2.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_keyring_file.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_keyring_mem.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_params_function.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_rsa_export_params.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_verify_flags.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_verify_limits.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_crl.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_crl_file.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_crl_mem.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_key.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_key_file.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_key_mem.3 +60 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_simple_pkcs12_file.3 +62 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_trust.3 +49 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_trust_file.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_certificate_set_x509_trust_mem.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_certificate_type_get.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_certificate_type_get_id.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_certificate_type_get_name.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_certificate_type_list.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_certificate_type_set_priority.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_certificate_verify_peers.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_certificate_verify_peers2.3 +54 -0
- data/vendor/local/share/man/man3/gnutls_check_version.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_cipher_get.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_cipher_get_id.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_cipher_get_key_size.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_cipher_get_name.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_cipher_list.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_cipher_set_priority.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_cipher_suite_get_name.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_cipher_suite_info.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_compression_get.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_compression_get_id.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_compression_get_name.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_compression_list.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_compression_set_priority.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_credentials_clear.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_credentials_set.3 +53 -0
- data/vendor/local/share/man/man3/gnutls_crypto_cipher_register.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_crypto_digest_register.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_crypto_mac_register.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_crypto_rnd_register.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_db_check_entry.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_db_get_ptr.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_db_remove_session.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_db_set_cache_expiration.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_db_set_ptr.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_db_set_remove_function.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_db_set_retrieve_function.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_db_set_store_function.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_deinit.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_dh_get_group.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_dh_get_peers_public_bits.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_dh_get_prime_bits.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_dh_get_pubkey.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_dh_get_secret_bits.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_dh_params_cpy.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_dh_params_deinit.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_dh_params_export_pkcs3.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_dh_params_export_raw.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_dh_params_generate2.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_dh_params_import_pkcs3.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_dh_params_import_raw.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_dh_params_init.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_dh_set_prime_bits.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_error_is_fatal.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_error_to_alert.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_extra_check_version.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_fingerprint.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_free.3 +34 -0
- data/vendor/local/share/man/man3/gnutls_global_deinit.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_global_init.3 +60 -0
- data/vendor/local/share/man/man3/gnutls_global_init_extra.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_global_set_log_function.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_global_set_log_level.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_global_set_mem_functions.3 +47 -0
- data/vendor/local/share/man/man3/gnutls_handshake.3 +53 -0
- data/vendor/local/share/man/man3/gnutls_handshake_get_last_in.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_handshake_get_last_out.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_handshake_set_max_packet_length.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_handshake_set_post_client_hello_function.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_handshake_set_private_extensions.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_hex2bin.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_hex_decode.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_hex_encode.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_ia_allocate_client_credentials.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_ia_allocate_server_credentials.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_ia_enable.3 +53 -0
- data/vendor/local/share/man/man3/gnutls_ia_endphase_send.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_ia_extract_inner_secret.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_ia_free_client_credentials.3 +34 -0
- data/vendor/local/share/man/man3/gnutls_ia_free_server_credentials.3 +34 -0
- data/vendor/local/share/man/man3/gnutls_ia_generate_challenge.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_ia_get_client_avp_ptr.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_ia_get_server_avp_ptr.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_ia_handshake.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_ia_handshake_p.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_ia_permute_inner_secret.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_ia_recv.3 +57 -0
- data/vendor/local/share/man/man3/gnutls_ia_send.3 +56 -0
- data/vendor/local/share/man/man3/gnutls_ia_set_client_avp_function.3 +61 -0
- data/vendor/local/share/man/man3/gnutls_ia_set_client_avp_ptr.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_ia_set_server_avp_function.3 +68 -0
- data/vendor/local/share/man/man3/gnutls_ia_set_server_avp_ptr.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_ia_verify_endphase.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_init.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_kx_get.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_kx_get_id.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_kx_get_name.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_kx_list.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_kx_set_priority.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_mac_get.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_mac_get_id.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_mac_get_key_size.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_mac_get_name.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_mac_list.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_mac_set_priority.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_malloc.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_check_hostname.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_deinit.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_export.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_auth_subkey.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_creation_time.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_expiration_time.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_fingerprint.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_key_id.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_key_usage.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_name.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_pk_algorithm.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_pk_dsa_raw.3 +47 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_pk_rsa_raw.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_preferred_key_id.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_revoked_status.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_count.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_creation_time.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_expiration_time.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_fingerprint.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_id.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_idx.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_pk_algorithm.3 +47 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_pk_dsa_raw.3 +49 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_pk_rsa_raw.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_revoked_status.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_usage.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_version.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_import.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_init.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_print.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_set_preferred_key_id.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_verify_ring.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_crt_verify_self.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_keyring_check_id.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_keyring_deinit.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_keyring_get_crt.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_keyring_get_crt_count.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_keyring_import.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_keyring_init.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_deinit.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export_dsa_raw.3 +49 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export_rsa_raw.3 +51 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export_subkey_dsa_raw.3 +51 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export_subkey_rsa_raw.3 +53 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_fingerprint.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_key_id.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_pk_algorithm.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_preferred_key_id.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_revoked_status.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_count.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_creation_time.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_expiration_time.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_fingerprint.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_id.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_idx.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_pk_algorithm.3 +47 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_revoked_status.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_import.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_init.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_set_preferred_key_id.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_privkey_sign_hash.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_send_cert.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_openpgp_set_recv_key_function.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_oprfi_enable_client.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_oprfi_enable_server.3 +49 -0
- data/vendor/local/share/man/man3/gnutls_pem_base64_decode.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_pem_base64_decode_alloc.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_pem_base64_encode.3 +47 -0
- data/vendor/local/share/man/man3/gnutls_pem_base64_encode_alloc.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_perror.3 +34 -0
- data/vendor/local/share/man/man3/gnutls_pk_algorithm_get_name.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_decrypt.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_deinit.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_encrypt.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_count.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_data.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_friendly_name.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_key_id.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_type.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_init.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_crl.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_crt.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_data.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_friendly_name.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_key_id.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_deinit.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_export.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_generate_mac.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_get_bag.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_import.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_init.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_set_bag.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_pkcs12_verify_mac.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_pkcs7_deinit.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_pkcs7_delete_crl.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_pkcs7_delete_crt.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_pkcs7_export.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_pkcs7_get_crl_count.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_pkcs7_get_crl_raw.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_pkcs7_get_crt_count.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_pkcs7_get_crt_raw.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_pkcs7_import.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_pkcs7_init.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_pkcs7_set_crl.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_pkcs7_set_crl_raw.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_pkcs7_set_crt.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_pkcs7_set_crt_raw.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_prf.3 +63 -0
- data/vendor/local/share/man/man3/gnutls_prf_raw.3 +62 -0
- data/vendor/local/share/man/man3/gnutls_priority_deinit.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_priority_init.3 +99 -0
- data/vendor/local/share/man/man3/gnutls_priority_set.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_priority_set_direct.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_protocol_get_id.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_protocol_get_name.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_protocol_get_version.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_protocol_list.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_protocol_set_priority.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_psk_allocate_client_credentials.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_psk_allocate_server_credentials.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_psk_client_get_hint.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_psk_free_client_credentials.3 +34 -0
- data/vendor/local/share/man/man3/gnutls_psk_free_server_credentials.3 +34 -0
- data/vendor/local/share/man/man3/gnutls_psk_netconf_derive_key.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_psk_server_get_username.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_psk_set_client_credentials.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_psk_set_client_credentials_function.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_psk_set_params_function.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_psk_set_server_credentials_file.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_psk_set_server_credentials_function.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_psk_set_server_credentials_hint.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_psk_set_server_dh_params.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_psk_set_server_params_function.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_record_check_pending.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_record_disable_padding.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_record_get_direction.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_record_get_max_size.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_record_recv.3 +59 -0
- data/vendor/local/share/man/man3/gnutls_record_send.3 +57 -0
- data/vendor/local/share/man/man3/gnutls_record_set_max_size.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_rehandshake.3 +49 -0
- data/vendor/local/share/man/man3/gnutls_rsa_export_get_modulus_bits.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_rsa_export_get_pubkey.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_rsa_params_cpy.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_rsa_params_deinit.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_rsa_params_export_pkcs1.3 +47 -0
- data/vendor/local/share/man/man3/gnutls_rsa_params_export_raw.3 +49 -0
- data/vendor/local/share/man/man3/gnutls_rsa_params_generate2.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_rsa_params_import_pkcs1.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_rsa_params_import_raw.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_rsa_params_init.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_server_name_get.3 +53 -0
- data/vendor/local/share/man/man3/gnutls_server_name_set.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_session_enable_compatibility_mode.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_session_get_client_random.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_session_get_data.3 +47 -0
- data/vendor/local/share/man/man3/gnutls_session_get_data2.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_session_get_id.3 +47 -0
- data/vendor/local/share/man/man3/gnutls_session_get_master_secret.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_session_get_ptr.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_session_get_server_random.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_session_is_resumed.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_session_set_data.3 +47 -0
- data/vendor/local/share/man/man3/gnutls_session_set_ptr.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_set_default_export_priority.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_set_default_priority.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_sign_algorithm_get_name.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_sign_callback_get.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_sign_callback_set.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_srp_allocate_client_credentials.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_srp_allocate_server_credentials.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_srp_base64_decode.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_srp_base64_decode_alloc.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_srp_base64_encode.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_srp_base64_encode_alloc.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_srp_free_client_credentials.3 +34 -0
- data/vendor/local/share/man/man3/gnutls_srp_free_server_credentials.3 +34 -0
- data/vendor/local/share/man/man3/gnutls_srp_server_get_username.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_srp_set_client_credentials.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_srp_set_client_credentials_function.3 +54 -0
- data/vendor/local/share/man/man3/gnutls_srp_set_server_credentials_file.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_srp_set_server_credentials_function.3 +56 -0
- data/vendor/local/share/man/man3/gnutls_srp_verifier.3 +53 -0
- data/vendor/local/share/man/man3/gnutls_strerror.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_transport_get_ptr.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_transport_get_ptr2.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_transport_set_errno.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_transport_set_global_errno.3 +47 -0
- data/vendor/local/share/man/man3/gnutls_transport_set_lowat.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_transport_set_ptr.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_transport_set_ptr2.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_transport_set_pull_function.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_transport_set_push_function.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_check_issuer.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_deinit.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_export.3 +49 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_crt_count.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_crt_serial.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_dn_oid.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_issuer_dn.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_issuer_dn_by_oid.3 +58 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_next_update.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_signature.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_signature_algorithm.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_this_update.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_get_version.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_import.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_init.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_print.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_set_crt.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_set_crt_serial.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_set_next_update.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_set_this_update.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_set_version.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_sign.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_sign2.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_x509_crl_verify.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_deinit.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_export.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_attribute_by_oid.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_challenge_password.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_dn.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_dn_by_oid.3 +59 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_dn_oid.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_pk_algorithm.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_get_version.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_import.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_init.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_attribute_by_oid.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_challenge_password.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_dn_by_oid.3 +51 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_key.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_set_version.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_sign.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_x509_crq_sign2.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_check_hostname.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_check_issuer.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_check_revocation.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_cpy_crl_dist_points.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_deinit.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_export.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_activation_time.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_authority_key_id.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_basic_constraints.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_ca_status.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_crl_dist_points.3 +66 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_dn.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_dn_by_oid.3 +58 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_dn_oid.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_expiration_time.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_extension_by_oid.3 +49 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_extension_data.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_extension_info.3 +53 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_extension_oid.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_fingerprint.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_dn.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_dn_by_oid.3 +58 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_dn_oid.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_key_id.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_key_purpose_oid.3 +49 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_key_usage.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_pk_algorithm.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_pk_dsa_raw.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_pk_rsa_raw.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_proxy.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_raw_dn.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_raw_issuer_dn.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_serial.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_signature.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_signature_algorithm.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject_alt_name.3 +64 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject_alt_name2.3 +49 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject_alt_othername_oid.3 +56 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject_key_id.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_get_version.3 +35 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_import.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_init.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_list_import.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_list_verify.3 +68 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_print.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_activation_time.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_authority_key_id.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_basic_constraints.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_ca_status.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_crl_dist_points.3 +42 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_crq.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_dn_by_oid.3 +52 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_expiration_time.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_extension_by_oid.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_issuer_dn_by_oid.3 +56 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_key.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_key_purpose_oid.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_key_usage.3 +38 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_proxy.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_proxy_dn.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_serial.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_subject_alternative_name.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_subject_key_id.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_set_version.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_sign.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_sign2.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_verify.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_x509_crt_verify_data.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_x509_dn_deinit.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_x509_dn_export.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_x509_dn_get_rdn_ava.3 +46 -0
- data/vendor/local/share/man/man3/gnutls_x509_dn_import.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_x509_dn_init.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_x509_dn_oid_known.3 +41 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_cpy.3 +39 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_deinit.3 +33 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_export.3 +52 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_export_dsa_raw.3 +47 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_export_pkcs8.3 +61 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_export_rsa_raw.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_fix.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_generate.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_get_key_id.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_get_pk_algorithm.3 +37 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_import.3 +45 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_import_dsa_raw.3 +48 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_import_pkcs8.3 +54 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_import_rsa_raw.3 +50 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_init.3 +36 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_sign_data.3 +54 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_sign_hash.3 +40 -0
- data/vendor/local/share/man/man3/gnutls_x509_privkey_verify_data.3 +43 -0
- data/vendor/local/share/man/man3/gnutls_x509_rdn_get.3 +44 -0
- data/vendor/local/share/man/man3/gnutls_x509_rdn_get_by_oid.3 +51 -0
- data/vendor/local/share/man/man3/gnutls_x509_rdn_get_oid.3 +45 -0
- data/vendor/local/share/man/man3/libtasn1_perror.3 +32 -0
- data/vendor/local/share/man/man3/libtasn1_strerror.3 +35 -0
- metadata +660 -5
@@ -0,0 +1,105 @@
|
|
1
|
+
/* Typedefs to be fully compatible with the types of
|
2
|
+
* GnuTLS 1.0.x.
|
3
|
+
*/
|
4
|
+
|
5
|
+
#ifndef GCOMPAT_H
|
6
|
+
# define GCOMPAT_H
|
7
|
+
|
8
|
+
#ifdef __GNUC__
|
9
|
+
|
10
|
+
#define _GNUTLS_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
11
|
+
|
12
|
+
#if _GNUTLS_GCC_VERSION >= 30100
|
13
|
+
#define _GNUTLS_GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__))
|
14
|
+
#endif
|
15
|
+
|
16
|
+
#endif /* __GNUC__ */
|
17
|
+
|
18
|
+
#ifndef _GNUTLS_GCC_ATTR_DEPRECATED
|
19
|
+
#define _GNUTLS_GCC_ATTR_DEPRECATED
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#define gnutls_cipher_algorithm gnutls_cipher_algorithm_t
|
23
|
+
#define gnutls_kx_algorithm gnutls_kx_algorithm_t
|
24
|
+
#define gnutls_paramsype gnutls_paramsype_t
|
25
|
+
#define gnutls_mac_algorithm gnutls_mac_algorithm_t
|
26
|
+
#define gnutls_digest_algorithm gnutls_digest_algorithm_t
|
27
|
+
#define gnutls_compression_method gnutls_compression_method_t
|
28
|
+
#define gnutls_connection_end gnutls_connection_end_t
|
29
|
+
#define gnutls_credentialsype gnutls_credentialsype_t
|
30
|
+
#define gnutls_certificateype gnutls_certificateype_t
|
31
|
+
#define gnutls_x509_crt_fmt gnutls_x509_crt_fmt_t
|
32
|
+
#define gnutls_openpgp_key_fmt gnutls_openpgp_key_fmt_t
|
33
|
+
#define gnutls_pk_algorithm gnutls_pk_algorithm_t
|
34
|
+
#define gnutls_sign_algorithm gnutls_sign_algorithm_t
|
35
|
+
#define gnutls_server_name gnutls_server_nameype_t
|
36
|
+
#define gnutls_protocol gnutls_protocol_version_t
|
37
|
+
#define gnutls_close_request gnutls_close_request_t
|
38
|
+
#define gnutls_openpgp_key_status gnutls_openpgp_key_status_t
|
39
|
+
#define gnutls_certificate_request gnutls_certificate_request_t
|
40
|
+
#define gnutls_certificate_status gnutls_certificate_status_t
|
41
|
+
#define gnutls_session gnutls_session_t
|
42
|
+
#define gnutls_alert_level gnutls_alert_level_t
|
43
|
+
#define gnutls_alert_description gnutls_alert_description_t
|
44
|
+
#define gnutls_x509_subject_alt_name gnutls_x509_subject_alt_name_t
|
45
|
+
#define gnutls_openpgp_key gnutls_openpgp_key_t
|
46
|
+
#define gnutls_openpgp_privkey gnutls_openpgp_privkey_t
|
47
|
+
#define gnutls_openpgp_keyring gnutls_openpgp_keyring_t
|
48
|
+
#define gnutls_x509_crt gnutls_x509_crt_t
|
49
|
+
#define gnutls_x509_privkey gnutls_x509_privkey_t
|
50
|
+
#define gnutls_x509_crl gnutls_x509_crl_t
|
51
|
+
#define gnutls_pkcs7 gnutls_pkcs7_t
|
52
|
+
#define gnutls_x509_crq gnutls_x509_crq_t
|
53
|
+
#define gnutls_pkcs_encrypt_flags gnutls_pkcs_encrypt_flags_t
|
54
|
+
#define gnutls_pkcs12_bag_type gnutls_pkcs12_bag_type_t
|
55
|
+
#define gnutls_pkcs12_bag gnutls_pkcs12_bag_t
|
56
|
+
#define gnutls_pkcs12 gnutls_pkcs12_t
|
57
|
+
#define gnutls_certificate_credentials gnutls_certificate_credentials_t
|
58
|
+
#define gnutls_anon_server_credentials gnutls_anon_server_credentials_t
|
59
|
+
#define gnutls_anon_client_credentials gnutls_anon_client_credentials_t
|
60
|
+
#define gnutls_srp_client_credentials gnutls_srp_client_credentials_t
|
61
|
+
#define gnutls_srp_server_credentials gnutls_srp_server_credentials_t
|
62
|
+
#define gnutls_dh_params gnutls_dh_params_t
|
63
|
+
#define gnutls_rsa_params gnutls_rsa_params_t
|
64
|
+
#define gnutls_params_type gnutls_params_type_t
|
65
|
+
#define gnutls_credentials_type gnutls_credentials_type_t
|
66
|
+
#define gnutls_certificate_type gnutls_certificate_type_t
|
67
|
+
#define gnutls_datum gnutls_datum_t
|
68
|
+
#define gnutls_transport_ptr gnutls_transport_ptr_t
|
69
|
+
|
70
|
+
/* Old SRP alerts removed in 2.1.x because the TLS-SRP RFC was
|
71
|
+
modified to use the PSK alert. */
|
72
|
+
#define GNUTLS_A_MISSING_SRP_USERNAME GNUTLS_A_UNKNOWN_PSK_IDENTITY
|
73
|
+
#define GNUTLS_A_UNKNOWN_SRP_USERNAME GNUTLS_A_UNKNOWN_PSK_IDENTITY
|
74
|
+
|
75
|
+
/* OpenPGP stuff renamed in 2.1.x. */
|
76
|
+
#define gnutls_openpgp_key_fmt_t gnutls_openpgp_crt_fmt_t
|
77
|
+
#define GNUTLS_OPENPGP_KEY GNUTLS_OPENPGP_CERT
|
78
|
+
#define GNUTLS_OPENPGP_KEY_FINGERPRINT GNUTLS_OPENPGP_CERT_FINGERPRINT
|
79
|
+
#define gnutls_openpgp_send_key gnutls_openpgp_send_cert
|
80
|
+
#define gnutls_openpgp_key_status_t gnutls_openpgp_crt_status_t
|
81
|
+
#define gnutls_openpgp_key_t gnutls_openpgp_crt_t
|
82
|
+
#define gnutls_openpgp_key_init gnutls_openpgp_crt_init
|
83
|
+
#define gnutls_openpgp_key_deinit gnutls_openpgp_crt_deinit
|
84
|
+
#define gnutls_openpgp_key_import gnutls_openpgp_crt_import
|
85
|
+
#define gnutls_openpgp_key_export gnutls_openpgp_crt_export
|
86
|
+
#define gnutls_openpgp_key_get_key_usage gnutls_openpgp_crt_get_key_usage
|
87
|
+
#define gnutls_openpgp_key_get_fingerprint gnutls_openpgp_crt_get_fingerprint
|
88
|
+
#define gnutls_openpgp_key_get_pk_algorithm gnutls_openpgp_crt_get_pk_algorithm
|
89
|
+
#define gnutls_openpgp_key_get_name gnutls_openpgp_crt_get_name
|
90
|
+
#define gnutls_openpgp_key_get_version gnutls_openpgp_crt_get_version
|
91
|
+
#define gnutls_openpgp_key_get_creation_time gnutls_openpgp_crt_get_creation_time
|
92
|
+
#define gnutls_openpgp_key_get_expiration_time gnutls_openpgp_crt_get_expiration_time
|
93
|
+
#define gnutls_openpgp_key_get_id gnutls_openpgp_crt_get_id
|
94
|
+
#define gnutls_openpgp_key_check_hostname gnutls_openpgp_crt_check_hostname
|
95
|
+
|
96
|
+
/* OpenPGP stuff renamed in 2.3.x. */
|
97
|
+
#define gnutls_openpgp_crt_get_id gnutls_openpgp_crt_get_key_id
|
98
|
+
|
99
|
+
/* New better names renamed in 2.3.x, add these for backwards
|
100
|
+
compatibility with old poor names.*/
|
101
|
+
#define GNUTLS_X509_CRT_FULL GNUTLS_CRT_PRINT_FULL
|
102
|
+
#define GNUTLS_X509_CRT_ONELINE GNUTLS_CRT_PRINT_ONELINE
|
103
|
+
#define GNUTLS_X509_CRT_UNSIGNED_FULL GNUTLS_CRT_PRINT_UNSIGNED_FULL
|
104
|
+
|
105
|
+
#endif /* GCOMPAT_H */
|
@@ -0,0 +1,73 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (C) 2008 Free Software Foundation
|
3
|
+
*
|
4
|
+
* Author: Nikos Mavrogiannopoulos
|
5
|
+
*
|
6
|
+
* This file is part of GNUTLS.
|
7
|
+
*
|
8
|
+
* The GNUTLS library 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
|
+
* This library is distributed in the hope that it will be useful, but
|
14
|
+
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
* 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
|
19
|
+
* License along with this library; if not, write to the Free Software
|
20
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
21
|
+
* USA
|
22
|
+
*
|
23
|
+
*/
|
24
|
+
|
25
|
+
#if INTERNAL_GNUTLS_CRYPTO_H_ENABLE_UNSUPPORTED_API
|
26
|
+
|
27
|
+
#ifndef GNUTLS_CRYPTO_H
|
28
|
+
# define GNUTLS_CRYPTO_H
|
29
|
+
|
30
|
+
typedef struct gnutls_crypto_cipher {
|
31
|
+
int (*init)( void** ctx);
|
32
|
+
int (*setkey)( void* ctx, const void * key, int keysize);
|
33
|
+
int (*setiv)(void* ctx, const void* iv, int ivsize);
|
34
|
+
int (*encrypt)(void* ctx, const void* plain, int plainsize, void* encr, int encrsize);
|
35
|
+
int (*decrypt)(void* ctx, const void* encr, int encrsize, void* plain, int plainsize);
|
36
|
+
void (*deinit)( void* ctx);
|
37
|
+
} gnutls_crypto_cipher_st;
|
38
|
+
|
39
|
+
typedef struct gnutls_crypto_mac {
|
40
|
+
int (*init)( void** ctx);
|
41
|
+
int (*setkey)( void* ctx, const void * key, int keysize);
|
42
|
+
int (*hash)( void* ctx, const void * text, int textsize);
|
43
|
+
int (*copy)( void** dst_ctx, void* src_ctx);
|
44
|
+
int (*output) ( void* src_ctx, void* digest, int digestsize);
|
45
|
+
void (*deinit)( void* ctx);
|
46
|
+
} gnutls_crypto_mac_st;
|
47
|
+
|
48
|
+
typedef enum gnutls_rnd_level
|
49
|
+
{
|
50
|
+
GNUTLS_RND_KEY = 0,
|
51
|
+
GNUTLS_RND_RANDOM = 1, /* unpredictable */
|
52
|
+
GNUTLS_RND_NONCE = 2,
|
53
|
+
} gnutls_rnd_level_t;
|
54
|
+
|
55
|
+
typedef struct gnutls_crypto_rnd {
|
56
|
+
int (*init)( void** ctx);
|
57
|
+
int (*rnd) ( void* ctx, int /* gnutls_rnd_level_t */ level, void* data, int datasize);
|
58
|
+
void (*deinit)( void* ctx);
|
59
|
+
} gnutls_crypto_rnd_st;
|
60
|
+
|
61
|
+
/* the same... setkey should be null */
|
62
|
+
typedef gnutls_crypto_mac_st gnutls_crypto_digest_st;
|
63
|
+
|
64
|
+
/* priority: infinity for backend algorithms, 90 for kernel algorithms - lowest wins
|
65
|
+
*/
|
66
|
+
int gnutls_crypto_cipher_register( gnutls_cipher_algorithm_t algorithm, int priority, gnutls_crypto_cipher_st* s);
|
67
|
+
int gnutls_crypto_mac_register( gnutls_mac_algorithm_t algorithm, int priority, gnutls_crypto_mac_st* s);
|
68
|
+
int gnutls_crypto_digest_register( gnutls_digest_algorithm_t algorithm, int priority, gnutls_crypto_digest_st* s);
|
69
|
+
int gnutls_crypto_rnd_register( int priority, gnutls_crypto_rnd_st* s);
|
70
|
+
|
71
|
+
#endif
|
72
|
+
|
73
|
+
#endif
|
@@ -0,0 +1,137 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (C) 2002, 2003, 2004, 2005, 2007 Free Software Foundation
|
3
|
+
*
|
4
|
+
* Author: Nikos Mavrogiannopoulos
|
5
|
+
*
|
6
|
+
* This file is part of GNUTLS-EXTRA.
|
7
|
+
*
|
8
|
+
* GNUTLS-EXTRA is free software; you can redistribute it and/or
|
9
|
+
* modify it under the terms of the GNU General Public License as
|
10
|
+
* published by the Free Software Foundation; either version 3 of the
|
11
|
+
* License, or (at your option) any later version.
|
12
|
+
*
|
13
|
+
* GNUTLS-EXTRA is distributed in the hope that it will be useful, but
|
14
|
+
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
16
|
+
* General Public License for more details.
|
17
|
+
*
|
18
|
+
* You should have received a copy of the GNU General Public License
|
19
|
+
* along with GNUTLS-EXTRA; if not, write to the Free Software
|
20
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
21
|
+
* 02110-1301, USA.
|
22
|
+
*
|
23
|
+
*/
|
24
|
+
|
25
|
+
/* Note the libgnutls-extra is not a standalone library. It requires
|
26
|
+
* to link also against libgnutls.
|
27
|
+
*/
|
28
|
+
|
29
|
+
#ifndef GNUTLS_EXTRA_H
|
30
|
+
# define GNUTLS_EXTRA_H
|
31
|
+
|
32
|
+
#include <gnutls/gnutls.h>
|
33
|
+
|
34
|
+
#ifdef __cplusplus
|
35
|
+
extern "C"
|
36
|
+
{
|
37
|
+
#endif
|
38
|
+
|
39
|
+
#define LIBGNUTLS_EXTRA_VERSION LIBGNUTLS_VERSION
|
40
|
+
|
41
|
+
/* TLS/IA stuff
|
42
|
+
*/
|
43
|
+
|
44
|
+
typedef enum
|
45
|
+
{
|
46
|
+
GNUTLS_IA_APPLICATION_PAYLOAD = 0,
|
47
|
+
GNUTLS_IA_INTERMEDIATE_PHASE_FINISHED = 1,
|
48
|
+
GNUTLS_IA_FINAL_PHASE_FINISHED = 2
|
49
|
+
} gnutls_ia_apptype_t;
|
50
|
+
|
51
|
+
/* TLS/IA credential
|
52
|
+
*/
|
53
|
+
|
54
|
+
typedef int (*gnutls_ia_avp_func) (gnutls_session_t session, void *ptr,
|
55
|
+
const char *last, size_t lastlen,
|
56
|
+
char **next, size_t * nextlen);
|
57
|
+
|
58
|
+
typedef struct gnutls_ia_server_credentials_st
|
59
|
+
*gnutls_ia_server_credentials_t;
|
60
|
+
typedef struct gnutls_ia_client_credentials_st
|
61
|
+
*gnutls_ia_client_credentials_t;
|
62
|
+
|
63
|
+
/* Allocate and free TLS/IA credentials. */
|
64
|
+
extern void
|
65
|
+
gnutls_ia_free_client_credentials (gnutls_ia_client_credentials_t sc);
|
66
|
+
extern int
|
67
|
+
gnutls_ia_allocate_client_credentials (gnutls_ia_client_credentials_t *
|
68
|
+
sc);
|
69
|
+
|
70
|
+
extern void
|
71
|
+
gnutls_ia_free_server_credentials (gnutls_ia_server_credentials_t sc);
|
72
|
+
extern int
|
73
|
+
gnutls_ia_allocate_server_credentials (gnutls_ia_server_credentials_t *
|
74
|
+
sc);
|
75
|
+
|
76
|
+
/* Client TLS/IA credential functions. */
|
77
|
+
extern void
|
78
|
+
gnutls_ia_set_client_avp_function (gnutls_ia_client_credentials_t cred,
|
79
|
+
gnutls_ia_avp_func avp_func);
|
80
|
+
extern void
|
81
|
+
gnutls_ia_set_client_avp_ptr (gnutls_ia_client_credentials_t cred,
|
82
|
+
void *ptr);
|
83
|
+
extern void *gnutls_ia_get_client_avp_ptr (gnutls_ia_client_credentials_t
|
84
|
+
cred);
|
85
|
+
|
86
|
+
/* Server TLS/IA credential functions. */
|
87
|
+
extern void
|
88
|
+
gnutls_ia_set_server_avp_function (gnutls_ia_server_credentials_t cred,
|
89
|
+
gnutls_ia_avp_func avp_func);
|
90
|
+
extern void
|
91
|
+
gnutls_ia_set_server_avp_ptr (gnutls_ia_server_credentials_t cred,
|
92
|
+
void *ptr);
|
93
|
+
extern void *gnutls_ia_get_server_avp_ptr (gnutls_ia_server_credentials_t
|
94
|
+
cred);
|
95
|
+
|
96
|
+
/* TLS/IA handshake. */
|
97
|
+
extern int gnutls_ia_handshake_p (gnutls_session_t session);
|
98
|
+
|
99
|
+
extern int gnutls_ia_handshake (gnutls_session_t session);
|
100
|
+
|
101
|
+
/* TLS/IA low level interface. */
|
102
|
+
extern int
|
103
|
+
gnutls_ia_permute_inner_secret (gnutls_session_t session,
|
104
|
+
size_t session_keys_size,
|
105
|
+
const char *session_keys);
|
106
|
+
extern int gnutls_ia_endphase_send (gnutls_session_t session,
|
107
|
+
int final_p);
|
108
|
+
|
109
|
+
extern int gnutls_ia_verify_endphase (gnutls_session_t session,
|
110
|
+
const char *checksum);
|
111
|
+
|
112
|
+
extern ssize_t gnutls_ia_send (gnutls_session_t session,
|
113
|
+
const char *data, size_t sizeofdata);
|
114
|
+
extern ssize_t gnutls_ia_recv (gnutls_session_t session,
|
115
|
+
char *data, size_t sizeofdata);
|
116
|
+
|
117
|
+
/* Utility stuff. */
|
118
|
+
extern int gnutls_ia_generate_challenge (gnutls_session_t session,
|
119
|
+
size_t buffer_size,
|
120
|
+
char *buffer);
|
121
|
+
extern void gnutls_ia_extract_inner_secret (gnutls_session_t session,
|
122
|
+
char *buffer);
|
123
|
+
|
124
|
+
/* Define whether inner phases are wanted. */
|
125
|
+
extern void gnutls_ia_enable (gnutls_session_t session,
|
126
|
+
int allow_skip_on_resume);
|
127
|
+
|
128
|
+
int gnutls_global_init_extra (void);
|
129
|
+
|
130
|
+
/* returns libgnutls-extra version (call it with a NULL argument)
|
131
|
+
*/
|
132
|
+
const char *gnutls_extra_check_version (const char *req_version);
|
133
|
+
|
134
|
+
#ifdef __cplusplus
|
135
|
+
}
|
136
|
+
#endif
|
137
|
+
#endif
|
@@ -0,0 +1,1333 @@
|
|
1
|
+
/* -*- c -*-
|
2
|
+
* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
|
3
|
+
*
|
4
|
+
* Author: Nikos Mavroyanopoulos
|
5
|
+
*
|
6
|
+
* This file is part of GNUTLS.
|
7
|
+
*
|
8
|
+
* The GNUTLS library 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
|
+
* This library is distributed in the hope that it will be useful, but
|
14
|
+
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
* 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
|
19
|
+
* License along with this library; if not, write to the Free Software
|
20
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
21
|
+
* USA
|
22
|
+
*
|
23
|
+
*/
|
24
|
+
|
25
|
+
/* This file contains the types and prototypes for all the
|
26
|
+
* high level functionality of gnutls main library. For the
|
27
|
+
* extra functionality (which is under the GNU GPL license) check
|
28
|
+
* the gnutls/extra.h header. The openssl compatibility layer is
|
29
|
+
* in gnutls/openssl.h.
|
30
|
+
*
|
31
|
+
* The low level cipher functionality is in libgcrypt. Check
|
32
|
+
* gcrypt.h
|
33
|
+
*/
|
34
|
+
|
35
|
+
|
36
|
+
#ifndef GNUTLS_H
|
37
|
+
# define GNUTLS_H
|
38
|
+
|
39
|
+
#ifdef __cplusplus
|
40
|
+
extern "C"
|
41
|
+
{
|
42
|
+
#endif
|
43
|
+
|
44
|
+
#define LIBGNUTLS_VERSION "2.4.2"
|
45
|
+
|
46
|
+
#define LIBGNUTLS_VERSION_MAJOR 2
|
47
|
+
#define LIBGNUTLS_VERSION_MINOR 4
|
48
|
+
#define LIBGNUTLS_VERSION_PATCH 2
|
49
|
+
|
50
|
+
#define LIBGNUTLS_VERSION_NUMBER 0x020402
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
/* Get size_t. */
|
55
|
+
#include <stddef.h>
|
56
|
+
/* Get ssize_t. */
|
57
|
+
#ifndef HAVE_SSIZE_T
|
58
|
+
# define HAVE_SSIZE_T
|
59
|
+
#include <sys/types.h>
|
60
|
+
#endif
|
61
|
+
/* Get time_t. */
|
62
|
+
#include <time.h>
|
63
|
+
#include <gnutls/compat.h>
|
64
|
+
|
65
|
+
#define GNUTLS_CIPHER_RIJNDAEL_128_CBC GNUTLS_CIPHER_AES_128_CBC
|
66
|
+
#define GNUTLS_CIPHER_RIJNDAEL_256_CBC GNUTLS_CIPHER_AES_256_CBC
|
67
|
+
#define GNUTLS_CIPHER_RIJNDAEL_CBC GNUTLS_CIPHER_AES_128_CBC
|
68
|
+
#define GNUTLS_CIPHER_ARCFOUR GNUTLS_CIPHER_ARCFOUR_128
|
69
|
+
|
70
|
+
typedef enum gnutls_cipher_algorithm
|
71
|
+
{
|
72
|
+
GNUTLS_CIPHER_UNKNOWN = 0,
|
73
|
+
GNUTLS_CIPHER_NULL = 1,
|
74
|
+
GNUTLS_CIPHER_ARCFOUR_128,
|
75
|
+
GNUTLS_CIPHER_3DES_CBC,
|
76
|
+
GNUTLS_CIPHER_AES_128_CBC,
|
77
|
+
GNUTLS_CIPHER_AES_256_CBC,
|
78
|
+
GNUTLS_CIPHER_ARCFOUR_40,
|
79
|
+
GNUTLS_CIPHER_CAMELLIA_128_CBC,
|
80
|
+
GNUTLS_CIPHER_CAMELLIA_256_CBC,
|
81
|
+
GNUTLS_CIPHER_RC2_40_CBC = 90,
|
82
|
+
GNUTLS_CIPHER_DES_CBC
|
83
|
+
} gnutls_cipher_algorithm_t;
|
84
|
+
|
85
|
+
typedef enum
|
86
|
+
{
|
87
|
+
GNUTLS_KX_UNKNOWN = 0,
|
88
|
+
GNUTLS_KX_RSA = 1,
|
89
|
+
GNUTLS_KX_DHE_DSS,
|
90
|
+
GNUTLS_KX_DHE_RSA,
|
91
|
+
GNUTLS_KX_ANON_DH,
|
92
|
+
GNUTLS_KX_SRP,
|
93
|
+
GNUTLS_KX_RSA_EXPORT,
|
94
|
+
GNUTLS_KX_SRP_RSA,
|
95
|
+
GNUTLS_KX_SRP_DSS,
|
96
|
+
GNUTLS_KX_PSK,
|
97
|
+
GNUTLS_KX_DHE_PSK
|
98
|
+
} gnutls_kx_algorithm_t;
|
99
|
+
|
100
|
+
typedef enum
|
101
|
+
{
|
102
|
+
GNUTLS_PARAMS_RSA_EXPORT = 1,
|
103
|
+
GNUTLS_PARAMS_DH
|
104
|
+
} gnutls_params_type_t;
|
105
|
+
|
106
|
+
typedef enum
|
107
|
+
{
|
108
|
+
GNUTLS_CRD_CERTIFICATE = 1,
|
109
|
+
GNUTLS_CRD_ANON,
|
110
|
+
GNUTLS_CRD_SRP,
|
111
|
+
GNUTLS_CRD_PSK,
|
112
|
+
GNUTLS_CRD_IA
|
113
|
+
} gnutls_credentials_type_t;
|
114
|
+
|
115
|
+
#define GNUTLS_MAC_SHA GNUTLS_MAC_SHA1
|
116
|
+
#define GNUTLS_DIG_SHA GNUTLS_DIG_SHA1
|
117
|
+
|
118
|
+
typedef enum
|
119
|
+
{
|
120
|
+
GNUTLS_MAC_UNKNOWN = 0,
|
121
|
+
GNUTLS_MAC_NULL = 1,
|
122
|
+
GNUTLS_MAC_MD5,
|
123
|
+
GNUTLS_MAC_SHA1,
|
124
|
+
GNUTLS_MAC_RMD160,
|
125
|
+
GNUTLS_MAC_MD2,
|
126
|
+
GNUTLS_MAC_SHA256,
|
127
|
+
GNUTLS_MAC_SHA384,
|
128
|
+
GNUTLS_MAC_SHA512
|
129
|
+
/* If you add anything here, make sure you align with
|
130
|
+
gnutls_digest_algorithm_t, in particular SHA-224. */
|
131
|
+
} gnutls_mac_algorithm_t;
|
132
|
+
|
133
|
+
/* The enumerations here should have the same value with
|
134
|
+
gnutls_mac_algorithm_t.
|
135
|
+
*/
|
136
|
+
typedef enum
|
137
|
+
{
|
138
|
+
GNUTLS_DIG_NULL = GNUTLS_MAC_NULL,
|
139
|
+
GNUTLS_DIG_MD5 = GNUTLS_MAC_MD5,
|
140
|
+
GNUTLS_DIG_SHA1 = GNUTLS_MAC_SHA1,
|
141
|
+
GNUTLS_DIG_RMD160 = GNUTLS_MAC_RMD160,
|
142
|
+
GNUTLS_DIG_MD2 = GNUTLS_MAC_MD2,
|
143
|
+
GNUTLS_DIG_SHA256 = GNUTLS_MAC_SHA256,
|
144
|
+
GNUTLS_DIG_SHA384 = GNUTLS_MAC_SHA384,
|
145
|
+
GNUTLS_DIG_SHA512 = GNUTLS_MAC_SHA512,
|
146
|
+
GNUTLS_DIG_SHA224
|
147
|
+
} gnutls_digest_algorithm_t;
|
148
|
+
|
149
|
+
/* exported for other gnutls headers. This is the maximum number of
|
150
|
+
* algorithms (ciphers, kx or macs).
|
151
|
+
*/
|
152
|
+
#define GNUTLS_MAX_ALGORITHM_NUM 16
|
153
|
+
|
154
|
+
#define GNUTLS_COMP_ZLIB GNUTLS_COMP_DEFLATE
|
155
|
+
typedef enum
|
156
|
+
{
|
157
|
+
GNUTLS_COMP_UNKNOWN = 0,
|
158
|
+
GNUTLS_COMP_NULL = 1,
|
159
|
+
GNUTLS_COMP_DEFLATE,
|
160
|
+
GNUTLS_COMP_LZO /* only available if gnutls-extra has
|
161
|
+
been initialized
|
162
|
+
*/
|
163
|
+
} gnutls_compression_method_t;
|
164
|
+
|
165
|
+
typedef enum
|
166
|
+
{
|
167
|
+
GNUTLS_SERVER = 1,
|
168
|
+
GNUTLS_CLIENT
|
169
|
+
} gnutls_connection_end_t;
|
170
|
+
|
171
|
+
typedef enum
|
172
|
+
{
|
173
|
+
GNUTLS_AL_WARNING = 1,
|
174
|
+
GNUTLS_AL_FATAL
|
175
|
+
} gnutls_alert_level_t;
|
176
|
+
|
177
|
+
typedef enum
|
178
|
+
{
|
179
|
+
GNUTLS_A_CLOSE_NOTIFY,
|
180
|
+
GNUTLS_A_UNEXPECTED_MESSAGE = 10,
|
181
|
+
GNUTLS_A_BAD_RECORD_MAC = 20,
|
182
|
+
GNUTLS_A_DECRYPTION_FAILED,
|
183
|
+
GNUTLS_A_RECORD_OVERFLOW,
|
184
|
+
GNUTLS_A_DECOMPRESSION_FAILURE = 30,
|
185
|
+
GNUTLS_A_HANDSHAKE_FAILURE = 40,
|
186
|
+
GNUTLS_A_SSL3_NO_CERTIFICATE = 41,
|
187
|
+
GNUTLS_A_BAD_CERTIFICATE = 42,
|
188
|
+
GNUTLS_A_UNSUPPORTED_CERTIFICATE,
|
189
|
+
GNUTLS_A_CERTIFICATE_REVOKED,
|
190
|
+
GNUTLS_A_CERTIFICATE_EXPIRED,
|
191
|
+
GNUTLS_A_CERTIFICATE_UNKNOWN,
|
192
|
+
GNUTLS_A_ILLEGAL_PARAMETER,
|
193
|
+
GNUTLS_A_UNKNOWN_CA,
|
194
|
+
GNUTLS_A_ACCESS_DENIED,
|
195
|
+
GNUTLS_A_DECODE_ERROR = 50,
|
196
|
+
GNUTLS_A_DECRYPT_ERROR,
|
197
|
+
GNUTLS_A_EXPORT_RESTRICTION = 60,
|
198
|
+
GNUTLS_A_PROTOCOL_VERSION = 70,
|
199
|
+
GNUTLS_A_INSUFFICIENT_SECURITY,
|
200
|
+
GNUTLS_A_INTERNAL_ERROR = 80,
|
201
|
+
GNUTLS_A_USER_CANCELED = 90,
|
202
|
+
GNUTLS_A_NO_RENEGOTIATION = 100,
|
203
|
+
GNUTLS_A_UNSUPPORTED_EXTENSION = 110,
|
204
|
+
GNUTLS_A_CERTIFICATE_UNOBTAINABLE = 111,
|
205
|
+
GNUTLS_A_UNRECOGNIZED_NAME = 112,
|
206
|
+
GNUTLS_A_UNKNOWN_PSK_IDENTITY = 115,
|
207
|
+
GNUTLS_A_INNER_APPLICATION_FAILURE = 208,
|
208
|
+
GNUTLS_A_INNER_APPLICATION_VERIFICATION = 209
|
209
|
+
} gnutls_alert_description_t;
|
210
|
+
|
211
|
+
typedef enum
|
212
|
+
{ GNUTLS_HANDSHAKE_HELLO_REQUEST = 0,
|
213
|
+
GNUTLS_HANDSHAKE_CLIENT_HELLO = 1,
|
214
|
+
GNUTLS_HANDSHAKE_SERVER_HELLO = 2,
|
215
|
+
GNUTLS_HANDSHAKE_CERTIFICATE_PKT = 11,
|
216
|
+
GNUTLS_HANDSHAKE_SERVER_KEY_EXCHANGE = 12,
|
217
|
+
GNUTLS_HANDSHAKE_CERTIFICATE_REQUEST = 13,
|
218
|
+
GNUTLS_HANDSHAKE_SERVER_HELLO_DONE = 14,
|
219
|
+
GNUTLS_HANDSHAKE_CERTIFICATE_VERIFY = 15,
|
220
|
+
GNUTLS_HANDSHAKE_CLIENT_KEY_EXCHANGE = 16,
|
221
|
+
GNUTLS_HANDSHAKE_FINISHED = 20,
|
222
|
+
GNUTLS_HANDSHAKE_SUPPLEMENTAL = 23
|
223
|
+
} gnutls_handshake_description_t;
|
224
|
+
|
225
|
+
/* Note that the status bits have different meanings
|
226
|
+
* in openpgp keys and x.509 certificate verification.
|
227
|
+
*/
|
228
|
+
typedef enum
|
229
|
+
{
|
230
|
+
GNUTLS_CERT_INVALID = 2, /* will be set if the certificate
|
231
|
+
* was not verified.
|
232
|
+
*/
|
233
|
+
GNUTLS_CERT_REVOKED = 32, /* in X.509 this will be set only if CRLs are checked
|
234
|
+
*/
|
235
|
+
|
236
|
+
/* Those are extra information about the verification
|
237
|
+
* process. Will be set only if the certificate was
|
238
|
+
* not verified.
|
239
|
+
*/
|
240
|
+
GNUTLS_CERT_SIGNER_NOT_FOUND = 64,
|
241
|
+
GNUTLS_CERT_SIGNER_NOT_CA = 128,
|
242
|
+
GNUTLS_CERT_INSECURE_ALGORITHM = 256
|
243
|
+
} gnutls_certificate_status_t;
|
244
|
+
|
245
|
+
typedef enum
|
246
|
+
{
|
247
|
+
GNUTLS_CERT_IGNORE,
|
248
|
+
GNUTLS_CERT_REQUEST = 1,
|
249
|
+
GNUTLS_CERT_REQUIRE
|
250
|
+
} gnutls_certificate_request_t;
|
251
|
+
|
252
|
+
typedef enum
|
253
|
+
{ GNUTLS_OPENPGP_CERT,
|
254
|
+
GNUTLS_OPENPGP_CERT_FINGERPRINT
|
255
|
+
} gnutls_openpgp_crt_status_t;
|
256
|
+
|
257
|
+
typedef enum
|
258
|
+
{
|
259
|
+
GNUTLS_SHUT_RDWR = 0,
|
260
|
+
GNUTLS_SHUT_WR = 1
|
261
|
+
} gnutls_close_request_t;
|
262
|
+
|
263
|
+
#define GNUTLS_TLS1 GNUTLS_TLS1_0
|
264
|
+
typedef enum
|
265
|
+
{
|
266
|
+
GNUTLS_SSL3 = 1,
|
267
|
+
GNUTLS_TLS1_0,
|
268
|
+
GNUTLS_TLS1_1,
|
269
|
+
GNUTLS_TLS1_2,
|
270
|
+
GNUTLS_VERSION_UNKNOWN = 0xff
|
271
|
+
} gnutls_protocol_t;
|
272
|
+
|
273
|
+
typedef enum
|
274
|
+
{
|
275
|
+
GNUTLS_CRT_UNKNOWN = 0,
|
276
|
+
GNUTLS_CRT_X509 = 1,
|
277
|
+
GNUTLS_CRT_OPENPGP
|
278
|
+
} gnutls_certificate_type_t;
|
279
|
+
|
280
|
+
typedef enum
|
281
|
+
{
|
282
|
+
GNUTLS_X509_FMT_DER,
|
283
|
+
GNUTLS_X509_FMT_PEM
|
284
|
+
} gnutls_x509_crt_fmt_t;
|
285
|
+
|
286
|
+
typedef enum gnutls_certificate_print_formats
|
287
|
+
{
|
288
|
+
GNUTLS_CRT_PRINT_FULL,
|
289
|
+
GNUTLS_CRT_PRINT_ONELINE,
|
290
|
+
GNUTLS_CRT_PRINT_UNSIGNED_FULL,
|
291
|
+
} gnutls_certificate_print_formats_t;
|
292
|
+
|
293
|
+
typedef enum
|
294
|
+
{
|
295
|
+
GNUTLS_PK_UNKNOWN = 0,
|
296
|
+
GNUTLS_PK_RSA = 1,
|
297
|
+
GNUTLS_PK_DSA
|
298
|
+
} gnutls_pk_algorithm_t;
|
299
|
+
|
300
|
+
const char *gnutls_pk_algorithm_get_name (gnutls_pk_algorithm_t algorithm);
|
301
|
+
|
302
|
+
#define GNUTLS_SIGN_RSA_SHA GNUTLS_SIGN_RSA_SHA1
|
303
|
+
#define GNUTLS_SIGN_DSA_SHA GNUTLS_SIGN_DSA_SHA1
|
304
|
+
typedef enum
|
305
|
+
{
|
306
|
+
GNUTLS_SIGN_UNKNOWN = 0,
|
307
|
+
GNUTLS_SIGN_RSA_SHA1 = 1,
|
308
|
+
GNUTLS_SIGN_DSA_SHA1,
|
309
|
+
GNUTLS_SIGN_RSA_MD5,
|
310
|
+
GNUTLS_SIGN_RSA_MD2,
|
311
|
+
GNUTLS_SIGN_RSA_RMD160,
|
312
|
+
GNUTLS_SIGN_RSA_SHA256,
|
313
|
+
GNUTLS_SIGN_RSA_SHA384,
|
314
|
+
GNUTLS_SIGN_RSA_SHA512,
|
315
|
+
GNUTLS_SIGN_RSA_SHA224
|
316
|
+
} gnutls_sign_algorithm_t;
|
317
|
+
|
318
|
+
const char *gnutls_sign_algorithm_get_name (gnutls_sign_algorithm_t
|
319
|
+
algorithm);
|
320
|
+
|
321
|
+
/* If you want to change this, then also change the define in
|
322
|
+
* gnutls_int.h, and recompile.
|
323
|
+
*/
|
324
|
+
typedef void *gnutls_transport_ptr_t;
|
325
|
+
|
326
|
+
struct gnutls_session_int;
|
327
|
+
typedef struct gnutls_session_int *gnutls_session_t;
|
328
|
+
|
329
|
+
struct gnutls_dh_params_int;
|
330
|
+
typedef struct gnutls_dh_params_int *gnutls_dh_params_t;
|
331
|
+
|
332
|
+
/* XXX ugly. */
|
333
|
+
struct gnutls_x509_privkey_int;
|
334
|
+
typedef struct gnutls_x509_privkey_int *gnutls_rsa_params_t;
|
335
|
+
|
336
|
+
struct gnutls_priority_st;
|
337
|
+
typedef struct gnutls_priority_st *gnutls_priority_t;
|
338
|
+
|
339
|
+
typedef struct
|
340
|
+
{
|
341
|
+
unsigned char *data;
|
342
|
+
unsigned int size;
|
343
|
+
} gnutls_datum_t;
|
344
|
+
|
345
|
+
|
346
|
+
typedef struct gnutls_params_st
|
347
|
+
{
|
348
|
+
gnutls_params_type_t type;
|
349
|
+
union params
|
350
|
+
{
|
351
|
+
gnutls_dh_params_t dh;
|
352
|
+
gnutls_rsa_params_t rsa_export;
|
353
|
+
} params;
|
354
|
+
int deinit;
|
355
|
+
} gnutls_params_st;
|
356
|
+
|
357
|
+
typedef int gnutls_params_function (gnutls_session_t, gnutls_params_type_t,
|
358
|
+
gnutls_params_st *);
|
359
|
+
|
360
|
+
/* internal functions */
|
361
|
+
|
362
|
+
int gnutls_init (gnutls_session_t * session,
|
363
|
+
gnutls_connection_end_t con_end);
|
364
|
+
void gnutls_deinit (gnutls_session_t session);
|
365
|
+
#define _gnutls_deinit(x) gnutls_deinit(x)
|
366
|
+
|
367
|
+
int gnutls_bye (gnutls_session_t session, gnutls_close_request_t how);
|
368
|
+
|
369
|
+
int gnutls_handshake (gnutls_session_t session);
|
370
|
+
int gnutls_rehandshake (gnutls_session_t session);
|
371
|
+
|
372
|
+
gnutls_alert_description_t gnutls_alert_get (gnutls_session_t session);
|
373
|
+
int gnutls_alert_send (gnutls_session_t session,
|
374
|
+
gnutls_alert_level_t level,
|
375
|
+
gnutls_alert_description_t desc);
|
376
|
+
int gnutls_alert_send_appropriate (gnutls_session_t session, int err);
|
377
|
+
const char *gnutls_alert_get_name (gnutls_alert_description_t alert);
|
378
|
+
|
379
|
+
/* get information on the current session */
|
380
|
+
gnutls_cipher_algorithm_t gnutls_cipher_get (gnutls_session_t session);
|
381
|
+
gnutls_kx_algorithm_t gnutls_kx_get (gnutls_session_t session);
|
382
|
+
gnutls_mac_algorithm_t gnutls_mac_get (gnutls_session_t session);
|
383
|
+
gnutls_compression_method_t gnutls_compression_get (gnutls_session_t
|
384
|
+
session);
|
385
|
+
gnutls_certificate_type_t gnutls_certificate_type_get (gnutls_session_t
|
386
|
+
session);
|
387
|
+
|
388
|
+
size_t gnutls_cipher_get_key_size (gnutls_cipher_algorithm_t algorithm);
|
389
|
+
size_t gnutls_mac_get_key_size (gnutls_mac_algorithm_t algorithm);
|
390
|
+
|
391
|
+
/* the name of the specified algorithms */
|
392
|
+
const char *gnutls_cipher_get_name (gnutls_cipher_algorithm_t algorithm);
|
393
|
+
const char *gnutls_mac_get_name (gnutls_mac_algorithm_t algorithm);
|
394
|
+
const char *gnutls_compression_get_name (gnutls_compression_method_t
|
395
|
+
algorithm);
|
396
|
+
const char *gnutls_kx_get_name (gnutls_kx_algorithm_t algorithm);
|
397
|
+
const char *gnutls_certificate_type_get_name (gnutls_certificate_type_t
|
398
|
+
type);
|
399
|
+
|
400
|
+
gnutls_mac_algorithm_t gnutls_mac_get_id (const char* name);
|
401
|
+
gnutls_compression_method_t gnutls_compression_get_id (const char* name);
|
402
|
+
gnutls_cipher_algorithm_t gnutls_cipher_get_id (const char* name);
|
403
|
+
gnutls_kx_algorithm_t gnutls_kx_get_id (const char* name);
|
404
|
+
gnutls_protocol_t gnutls_protocol_get_id (const char* name);
|
405
|
+
gnutls_certificate_type_t gnutls_certificate_type_get_id (const char* name);
|
406
|
+
|
407
|
+
|
408
|
+
/* list supported algorithms */
|
409
|
+
const gnutls_cipher_algorithm_t *gnutls_cipher_list (void);
|
410
|
+
const gnutls_mac_algorithm_t *gnutls_mac_list (void);
|
411
|
+
const gnutls_compression_method_t *gnutls_compression_list (void);
|
412
|
+
const gnutls_protocol_t *gnutls_protocol_list (void);
|
413
|
+
const gnutls_certificate_type_t *gnutls_certificate_type_list (void);
|
414
|
+
const gnutls_kx_algorithm_t *gnutls_kx_list (void);
|
415
|
+
const char *gnutls_cipher_suite_info (size_t i,
|
416
|
+
char *id,
|
417
|
+
gnutls_kx_algorithm_t *kx,
|
418
|
+
gnutls_cipher_algorithm_t *cipher,
|
419
|
+
gnutls_mac_algorithm_t *mac,
|
420
|
+
gnutls_protocol_t *version);
|
421
|
+
|
422
|
+
/* error functions */
|
423
|
+
int gnutls_error_is_fatal (int error);
|
424
|
+
int gnutls_error_to_alert (int err, int *level);
|
425
|
+
|
426
|
+
void gnutls_perror (int error);
|
427
|
+
const char *gnutls_strerror (int error);
|
428
|
+
|
429
|
+
/* Semi-internal functions.
|
430
|
+
*/
|
431
|
+
void gnutls_handshake_set_private_extensions (gnutls_session_t session,
|
432
|
+
int allow);
|
433
|
+
gnutls_handshake_description_t
|
434
|
+
gnutls_handshake_get_last_out (gnutls_session_t session);
|
435
|
+
gnutls_handshake_description_t
|
436
|
+
gnutls_handshake_get_last_in (gnutls_session_t session);
|
437
|
+
|
438
|
+
/* Record layer functions.
|
439
|
+
*/
|
440
|
+
ssize_t gnutls_record_send (gnutls_session_t session, const void *data,
|
441
|
+
size_t sizeofdata);
|
442
|
+
ssize_t gnutls_record_recv (gnutls_session_t session, void *data,
|
443
|
+
size_t sizeofdata);
|
444
|
+
#define gnutls_read gnutls_record_recv
|
445
|
+
#define gnutls_write gnutls_record_send
|
446
|
+
|
447
|
+
void gnutls_session_enable_compatibility_mode (gnutls_session_t session);
|
448
|
+
|
449
|
+
void gnutls_record_disable_padding (gnutls_session_t session);
|
450
|
+
|
451
|
+
int gnutls_record_get_direction (gnutls_session_t session);
|
452
|
+
|
453
|
+
size_t gnutls_record_get_max_size (gnutls_session_t session);
|
454
|
+
ssize_t gnutls_record_set_max_size (gnutls_session_t session, size_t size);
|
455
|
+
|
456
|
+
size_t gnutls_record_check_pending (gnutls_session_t session);
|
457
|
+
|
458
|
+
int gnutls_prf (gnutls_session_t session,
|
459
|
+
size_t label_size, const char *label,
|
460
|
+
int server_random_first,
|
461
|
+
size_t extra_size, const char *extra,
|
462
|
+
size_t outsize, char *out);
|
463
|
+
|
464
|
+
int gnutls_prf_raw (gnutls_session_t session,
|
465
|
+
size_t label_size, const char *label,
|
466
|
+
size_t seed_size, const char *seed,
|
467
|
+
size_t outsize, char *out);
|
468
|
+
|
469
|
+
/* TLS Extensions */
|
470
|
+
|
471
|
+
typedef enum
|
472
|
+
{
|
473
|
+
GNUTLS_NAME_DNS = 1
|
474
|
+
} gnutls_server_name_type_t;
|
475
|
+
|
476
|
+
int gnutls_server_name_set (gnutls_session_t session,
|
477
|
+
gnutls_server_name_type_t type,
|
478
|
+
const void *name, size_t name_length);
|
479
|
+
|
480
|
+
int gnutls_server_name_get (gnutls_session_t session,
|
481
|
+
void *data, size_t * data_length,
|
482
|
+
unsigned int *type, unsigned int indx);
|
483
|
+
|
484
|
+
/* Opaque PRF Input
|
485
|
+
* http://tools.ietf.org/id/draft-rescorla-tls-opaque-prf-input-00.txt
|
486
|
+
*/
|
487
|
+
|
488
|
+
void
|
489
|
+
gnutls_oprfi_enable_client (gnutls_session_t session,
|
490
|
+
size_t len,
|
491
|
+
unsigned char *data);
|
492
|
+
|
493
|
+
typedef int (*gnutls_oprfi_callback_func) (gnutls_session_t session,
|
494
|
+
void *userdata,
|
495
|
+
size_t oprfi_len,
|
496
|
+
const unsigned char *in_oprfi,
|
497
|
+
unsigned char *out_oprfi);
|
498
|
+
|
499
|
+
void
|
500
|
+
gnutls_oprfi_enable_server (gnutls_session_t session,
|
501
|
+
gnutls_oprfi_callback_func cb,
|
502
|
+
void *userdata);
|
503
|
+
|
504
|
+
/* Supplemental data, RFC 4680. */
|
505
|
+
typedef enum
|
506
|
+
{
|
507
|
+
GNUTLS_SUPPLEMENTAL_USER_MAPPING_DATA = 0
|
508
|
+
} gnutls_supplemental_data_format_type_t;
|
509
|
+
|
510
|
+
const char *gnutls_supplemental_get_name
|
511
|
+
(gnutls_supplemental_data_format_type_t type);
|
512
|
+
|
513
|
+
/* functions to set priority of cipher suites
|
514
|
+
*/
|
515
|
+
int gnutls_cipher_set_priority (gnutls_session_t session, const int *list);
|
516
|
+
int gnutls_mac_set_priority (gnutls_session_t session, const int *list);
|
517
|
+
int gnutls_compression_set_priority (gnutls_session_t session,
|
518
|
+
const int *list);
|
519
|
+
int gnutls_kx_set_priority (gnutls_session_t session, const int *list);
|
520
|
+
int gnutls_protocol_set_priority (gnutls_session_t session,
|
521
|
+
const int *list);
|
522
|
+
int gnutls_certificate_type_set_priority (gnutls_session_t session,
|
523
|
+
const int *list);
|
524
|
+
|
525
|
+
/* if you just want some defaults, use the following.
|
526
|
+
*/
|
527
|
+
int gnutls_priority_init( gnutls_priority_t*, const char *priority, const char** err_pos);
|
528
|
+
void gnutls_priority_deinit( gnutls_priority_t);
|
529
|
+
|
530
|
+
int gnutls_priority_set(gnutls_session_t session, gnutls_priority_t);
|
531
|
+
int gnutls_priority_set_direct(gnutls_session_t session, const char *priority, const char** err_pos);
|
532
|
+
|
533
|
+
/* for compatibility
|
534
|
+
*/
|
535
|
+
int gnutls_set_default_priority (gnutls_session_t session);
|
536
|
+
int gnutls_set_default_export_priority (gnutls_session_t session);
|
537
|
+
|
538
|
+
/* Returns the name of a cipher suite */
|
539
|
+
const char *gnutls_cipher_suite_get_name (gnutls_kx_algorithm_t
|
540
|
+
kx_algorithm,
|
541
|
+
gnutls_cipher_algorithm_t
|
542
|
+
cipher_algorithm,
|
543
|
+
gnutls_mac_algorithm_t
|
544
|
+
mac_algorithm);
|
545
|
+
|
546
|
+
/* get the currently used protocol version */
|
547
|
+
gnutls_protocol_t gnutls_protocol_get_version (gnutls_session_t session);
|
548
|
+
|
549
|
+
const char *gnutls_protocol_get_name (gnutls_protocol_t version);
|
550
|
+
|
551
|
+
|
552
|
+
/* get/set session
|
553
|
+
*/
|
554
|
+
int gnutls_session_set_data (gnutls_session_t session,
|
555
|
+
const void *session_data,
|
556
|
+
size_t session_data_size);
|
557
|
+
int gnutls_session_get_data (gnutls_session_t session, void *session_data,
|
558
|
+
size_t * session_data_size);
|
559
|
+
int gnutls_session_get_data2 (gnutls_session_t session,
|
560
|
+
gnutls_datum_t * data);
|
561
|
+
|
562
|
+
/* returns the session ID */
|
563
|
+
#define GNUTLS_MAX_SESSION_ID 32
|
564
|
+
int gnutls_session_get_id (gnutls_session_t session, void *session_id,
|
565
|
+
size_t * session_id_size);
|
566
|
+
|
567
|
+
/* returns security values.
|
568
|
+
* Do not use them unless you know what you're doing.
|
569
|
+
*/
|
570
|
+
#define TLS_MASTER_SIZE 48
|
571
|
+
#define TLS_RANDOM_SIZE 32
|
572
|
+
const void *gnutls_session_get_server_random (gnutls_session_t session);
|
573
|
+
const void *gnutls_session_get_client_random (gnutls_session_t session);
|
574
|
+
const void *gnutls_session_get_master_secret (gnutls_session_t session);
|
575
|
+
|
576
|
+
/* checks if this session is a resumed one
|
577
|
+
*/
|
578
|
+
int gnutls_session_is_resumed (gnutls_session_t session);
|
579
|
+
|
580
|
+
typedef int (*gnutls_db_store_func) (void *, gnutls_datum_t key,
|
581
|
+
gnutls_datum_t data);
|
582
|
+
typedef int (*gnutls_db_remove_func) (void *, gnutls_datum_t key);
|
583
|
+
typedef gnutls_datum_t (*gnutls_db_retr_func) (void *, gnutls_datum_t key);
|
584
|
+
|
585
|
+
void gnutls_db_set_cache_expiration (gnutls_session_t session, int seconds);
|
586
|
+
|
587
|
+
void gnutls_db_remove_session (gnutls_session_t session);
|
588
|
+
void gnutls_db_set_retrieve_function (gnutls_session_t session,
|
589
|
+
gnutls_db_retr_func retr_func);
|
590
|
+
void gnutls_db_set_remove_function (gnutls_session_t session,
|
591
|
+
gnutls_db_remove_func rem_func);
|
592
|
+
void gnutls_db_set_store_function (gnutls_session_t session,
|
593
|
+
gnutls_db_store_func store_func);
|
594
|
+
void gnutls_db_set_ptr (gnutls_session_t session, void *ptr);
|
595
|
+
void *gnutls_db_get_ptr (gnutls_session_t session);
|
596
|
+
int gnutls_db_check_entry (gnutls_session_t session,
|
597
|
+
gnutls_datum_t session_entry);
|
598
|
+
|
599
|
+
typedef int (*gnutls_handshake_post_client_hello_func)(gnutls_session_t);
|
600
|
+
void gnutls_handshake_set_post_client_hello_function(gnutls_session_t,
|
601
|
+
gnutls_handshake_post_client_hello_func);
|
602
|
+
|
603
|
+
void gnutls_handshake_set_max_packet_length (gnutls_session_t session,
|
604
|
+
size_t max);
|
605
|
+
|
606
|
+
/* returns libgnutls version (call it with a NULL argument)
|
607
|
+
*/
|
608
|
+
const char *gnutls_check_version (const char *req_version);
|
609
|
+
|
610
|
+
/* Functions for setting/clearing credentials
|
611
|
+
*/
|
612
|
+
void gnutls_credentials_clear (gnutls_session_t session);
|
613
|
+
|
614
|
+
/* cred is a structure defined by the kx algorithm
|
615
|
+
*/
|
616
|
+
int gnutls_credentials_set (gnutls_session_t session,
|
617
|
+
gnutls_credentials_type_t type, void *cred);
|
618
|
+
#define gnutls_cred_set gnutls_credentials_set
|
619
|
+
|
620
|
+
/* Credential structures - used in gnutls_credentials_set(); */
|
621
|
+
|
622
|
+
struct gnutls_certificate_credentials_st;
|
623
|
+
typedef struct gnutls_certificate_credentials_st
|
624
|
+
*gnutls_certificate_credentials_t;
|
625
|
+
typedef gnutls_certificate_credentials_t
|
626
|
+
gnutls_certificate_server_credentials;
|
627
|
+
typedef gnutls_certificate_credentials_t
|
628
|
+
gnutls_certificate_client_credentials;
|
629
|
+
|
630
|
+
typedef struct gnutls_anon_server_credentials_st
|
631
|
+
*gnutls_anon_server_credentials_t;
|
632
|
+
typedef struct gnutls_anon_client_credentials_st
|
633
|
+
*gnutls_anon_client_credentials_t;
|
634
|
+
|
635
|
+
void gnutls_anon_free_server_credentials (gnutls_anon_server_credentials_t sc);
|
636
|
+
int gnutls_anon_allocate_server_credentials (gnutls_anon_server_credentials_t * sc);
|
637
|
+
|
638
|
+
void gnutls_anon_set_server_dh_params (gnutls_anon_server_credentials_t res,
|
639
|
+
gnutls_dh_params_t dh_params);
|
640
|
+
|
641
|
+
void
|
642
|
+
gnutls_anon_set_server_params_function (gnutls_anon_server_credentials_t
|
643
|
+
res,
|
644
|
+
gnutls_params_function * func);
|
645
|
+
|
646
|
+
void gnutls_anon_free_client_credentials (gnutls_anon_client_credentials_t
|
647
|
+
sc);
|
648
|
+
int
|
649
|
+
gnutls_anon_allocate_client_credentials (gnutls_anon_client_credentials_t
|
650
|
+
* sc);
|
651
|
+
|
652
|
+
/* CERTFILE is an x509 certificate in PEM form.
|
653
|
+
* KEYFILE is a pkcs-1 private key in PEM form (for RSA keys).
|
654
|
+
*/
|
655
|
+
void gnutls_certificate_free_credentials (gnutls_certificate_credentials_t
|
656
|
+
sc);
|
657
|
+
int
|
658
|
+
gnutls_certificate_allocate_credentials (gnutls_certificate_credentials_t
|
659
|
+
* res);
|
660
|
+
|
661
|
+
void gnutls_certificate_free_keys (gnutls_certificate_credentials_t sc);
|
662
|
+
void gnutls_certificate_free_cas (gnutls_certificate_credentials_t sc);
|
663
|
+
void gnutls_certificate_free_ca_names (gnutls_certificate_credentials_t sc);
|
664
|
+
void gnutls_certificate_free_crls (gnutls_certificate_credentials_t sc);
|
665
|
+
|
666
|
+
void gnutls_certificate_set_dh_params (gnutls_certificate_credentials_t res,
|
667
|
+
gnutls_dh_params_t dh_params);
|
668
|
+
void
|
669
|
+
gnutls_certificate_set_rsa_export_params (gnutls_certificate_credentials_t
|
670
|
+
res,
|
671
|
+
gnutls_rsa_params_t rsa_params);
|
672
|
+
void gnutls_certificate_set_verify_flags (gnutls_certificate_credentials_t
|
673
|
+
res, unsigned int flags);
|
674
|
+
void gnutls_certificate_set_verify_limits (gnutls_certificate_credentials_t
|
675
|
+
res, unsigned int max_bits,
|
676
|
+
unsigned int max_depth);
|
677
|
+
|
678
|
+
int gnutls_certificate_set_x509_trust_file (gnutls_certificate_credentials_t
|
679
|
+
res, const char *CAFILE,
|
680
|
+
gnutls_x509_crt_fmt_t type);
|
681
|
+
int gnutls_certificate_set_x509_trust_mem (gnutls_certificate_credentials_t
|
682
|
+
res, const gnutls_datum_t * CA,
|
683
|
+
gnutls_x509_crt_fmt_t type);
|
684
|
+
|
685
|
+
int gnutls_certificate_set_x509_crl_file (gnutls_certificate_credentials_t
|
686
|
+
res, const char *crlfile,
|
687
|
+
gnutls_x509_crt_fmt_t type);
|
688
|
+
int gnutls_certificate_set_x509_crl_mem (gnutls_certificate_credentials_t
|
689
|
+
res, const gnutls_datum_t * CRL,
|
690
|
+
gnutls_x509_crt_fmt_t type);
|
691
|
+
|
692
|
+
int gnutls_certificate_set_x509_key_file (gnutls_certificate_credentials_t
|
693
|
+
res, const char *CERTFILE,
|
694
|
+
const char *KEYFILE,
|
695
|
+
gnutls_x509_crt_fmt_t type);
|
696
|
+
int gnutls_certificate_set_x509_key_mem (gnutls_certificate_credentials_t
|
697
|
+
res, const gnutls_datum_t * CERT,
|
698
|
+
const gnutls_datum_t * KEY,
|
699
|
+
gnutls_x509_crt_fmt_t type);
|
700
|
+
|
701
|
+
void gnutls_certificate_send_x509_rdn_sequence (gnutls_session_t session,
|
702
|
+
int status);
|
703
|
+
|
704
|
+
|
705
|
+
extern int
|
706
|
+
gnutls_certificate_set_x509_simple_pkcs12_file
|
707
|
+
(gnutls_certificate_credentials_t res, const char *pkcs12file,
|
708
|
+
gnutls_x509_crt_fmt_t type, const char *password);
|
709
|
+
|
710
|
+
/* New functions to allow setting already parsed X.509 stuff.
|
711
|
+
*/
|
712
|
+
struct gnutls_x509_privkey_int;
|
713
|
+
typedef struct gnutls_x509_privkey_int *gnutls_x509_privkey_t;
|
714
|
+
|
715
|
+
struct gnutls_x509_crl_int;
|
716
|
+
typedef struct gnutls_x509_crl_int *gnutls_x509_crl_t;
|
717
|
+
|
718
|
+
struct gnutls_x509_crt_int;
|
719
|
+
typedef struct gnutls_x509_crt_int *gnutls_x509_crt_t;
|
720
|
+
|
721
|
+
struct gnutls_openpgp_keyring_int;
|
722
|
+
typedef struct gnutls_openpgp_keyring_int *gnutls_openpgp_keyring_t;
|
723
|
+
|
724
|
+
int gnutls_certificate_set_x509_key (gnutls_certificate_credentials_t res,
|
725
|
+
gnutls_x509_crt_t * cert_list,
|
726
|
+
int cert_list_size,
|
727
|
+
gnutls_x509_privkey_t key);
|
728
|
+
int gnutls_certificate_set_x509_trust (gnutls_certificate_credentials_t res,
|
729
|
+
gnutls_x509_crt_t * ca_list,
|
730
|
+
int ca_list_size);
|
731
|
+
int gnutls_certificate_set_x509_crl (gnutls_certificate_credentials_t res,
|
732
|
+
gnutls_x509_crl_t * crl_list,
|
733
|
+
int crl_list_size);
|
734
|
+
|
735
|
+
void gnutls_certificate_get_x509_cas (gnutls_certificate_credentials_t sc,
|
736
|
+
gnutls_x509_crt_t **x509_ca_list,
|
737
|
+
unsigned int* ncas);
|
738
|
+
|
739
|
+
void gnutls_certificate_get_x509_crls (gnutls_certificate_credentials_t sc,
|
740
|
+
gnutls_x509_crl_t **x509_crl_list,
|
741
|
+
unsigned int* ncrls);
|
742
|
+
|
743
|
+
void gnutls_certificate_get_openpgp_keyring (gnutls_certificate_credentials_t sc,
|
744
|
+
gnutls_openpgp_keyring_t *keyring);
|
745
|
+
|
746
|
+
/* global state functions
|
747
|
+
*/
|
748
|
+
int gnutls_global_init (void);
|
749
|
+
void gnutls_global_deinit (void);
|
750
|
+
|
751
|
+
typedef void *(*gnutls_alloc_function) (size_t);
|
752
|
+
typedef void *(*gnutls_calloc_function) (size_t, size_t);
|
753
|
+
typedef int (*gnutls_is_secure_function) (const void *);
|
754
|
+
typedef void (*gnutls_free_function) (void *);
|
755
|
+
typedef void *(*gnutls_realloc_function) (void *, size_t);
|
756
|
+
|
757
|
+
extern void
|
758
|
+
gnutls_global_set_mem_functions (gnutls_alloc_function gt_alloc_func,
|
759
|
+
gnutls_alloc_function
|
760
|
+
gt_secure_alloc_func,
|
761
|
+
gnutls_is_secure_function
|
762
|
+
gt_is_secure_func,
|
763
|
+
gnutls_realloc_function gt_realloc_func,
|
764
|
+
gnutls_free_function gt_free_func);
|
765
|
+
|
766
|
+
/* For use in callbacks */
|
767
|
+
extern gnutls_alloc_function gnutls_malloc;
|
768
|
+
extern gnutls_alloc_function gnutls_secure_malloc;
|
769
|
+
extern gnutls_realloc_function gnutls_realloc;
|
770
|
+
extern gnutls_calloc_function gnutls_calloc;
|
771
|
+
extern gnutls_free_function gnutls_free;
|
772
|
+
|
773
|
+
extern char *(*gnutls_strdup) (const char *);
|
774
|
+
|
775
|
+
typedef void (*gnutls_log_func) (int, const char *);
|
776
|
+
void gnutls_global_set_log_function (gnutls_log_func log_func);
|
777
|
+
void gnutls_global_set_log_level (int level);
|
778
|
+
|
779
|
+
/* Diffie Hellman parameter handling.
|
780
|
+
*/
|
781
|
+
int gnutls_dh_params_init (gnutls_dh_params_t * dh_params);
|
782
|
+
void gnutls_dh_params_deinit (gnutls_dh_params_t dh_params);
|
783
|
+
int gnutls_dh_params_import_raw (gnutls_dh_params_t dh_params,
|
784
|
+
const gnutls_datum_t * prime,
|
785
|
+
const gnutls_datum_t * generator);
|
786
|
+
int gnutls_dh_params_import_pkcs3 (gnutls_dh_params_t params,
|
787
|
+
const gnutls_datum_t * pkcs3_params,
|
788
|
+
gnutls_x509_crt_fmt_t format);
|
789
|
+
int gnutls_dh_params_generate2 (gnutls_dh_params_t params,
|
790
|
+
unsigned int bits);
|
791
|
+
int gnutls_dh_params_export_pkcs3 (gnutls_dh_params_t params,
|
792
|
+
gnutls_x509_crt_fmt_t format,
|
793
|
+
unsigned char *params_data,
|
794
|
+
size_t * params_data_size);
|
795
|
+
int gnutls_dh_params_export_raw (gnutls_dh_params_t params,
|
796
|
+
gnutls_datum_t * prime,
|
797
|
+
gnutls_datum_t * generator,
|
798
|
+
unsigned int *bits);
|
799
|
+
int gnutls_dh_params_cpy (gnutls_dh_params_t dst, gnutls_dh_params_t src);
|
800
|
+
|
801
|
+
|
802
|
+
/* RSA params
|
803
|
+
*/
|
804
|
+
int gnutls_rsa_params_init (gnutls_rsa_params_t * rsa_params);
|
805
|
+
void gnutls_rsa_params_deinit (gnutls_rsa_params_t rsa_params);
|
806
|
+
int gnutls_rsa_params_cpy (gnutls_rsa_params_t dst,
|
807
|
+
gnutls_rsa_params_t src);
|
808
|
+
int gnutls_rsa_params_import_raw (gnutls_rsa_params_t rsa_params,
|
809
|
+
const gnutls_datum_t * m,
|
810
|
+
const gnutls_datum_t * e,
|
811
|
+
const gnutls_datum_t * d,
|
812
|
+
const gnutls_datum_t * p,
|
813
|
+
const gnutls_datum_t * q,
|
814
|
+
const gnutls_datum_t * u);
|
815
|
+
int gnutls_rsa_params_generate2 (gnutls_rsa_params_t params,
|
816
|
+
unsigned int bits);
|
817
|
+
int gnutls_rsa_params_export_raw (gnutls_rsa_params_t params,
|
818
|
+
gnutls_datum_t * m, gnutls_datum_t * e,
|
819
|
+
gnutls_datum_t * d, gnutls_datum_t * p,
|
820
|
+
gnutls_datum_t * q, gnutls_datum_t * u,
|
821
|
+
unsigned int *bits);
|
822
|
+
int gnutls_rsa_params_export_pkcs1 (gnutls_rsa_params_t params,
|
823
|
+
gnutls_x509_crt_fmt_t format,
|
824
|
+
unsigned char *params_data,
|
825
|
+
size_t * params_data_size);
|
826
|
+
int gnutls_rsa_params_import_pkcs1 (gnutls_rsa_params_t params,
|
827
|
+
const gnutls_datum_t * pkcs1_params,
|
828
|
+
gnutls_x509_crt_fmt_t format);
|
829
|
+
|
830
|
+
/* Session stuff
|
831
|
+
*/
|
832
|
+
typedef ssize_t (*gnutls_pull_func) (gnutls_transport_ptr_t, void *,
|
833
|
+
size_t);
|
834
|
+
typedef ssize_t (*gnutls_push_func) (gnutls_transport_ptr_t, const void *,
|
835
|
+
size_t);
|
836
|
+
void gnutls_transport_set_ptr (gnutls_session_t session,
|
837
|
+
gnutls_transport_ptr_t ptr);
|
838
|
+
void gnutls_transport_set_ptr2 (gnutls_session_t session,
|
839
|
+
gnutls_transport_ptr_t recv_ptr,
|
840
|
+
gnutls_transport_ptr_t send_ptr);
|
841
|
+
|
842
|
+
gnutls_transport_ptr_t gnutls_transport_get_ptr (gnutls_session_t session);
|
843
|
+
void gnutls_transport_get_ptr2 (gnutls_session_t session,
|
844
|
+
gnutls_transport_ptr_t * recv_ptr,
|
845
|
+
gnutls_transport_ptr_t * send_ptr);
|
846
|
+
|
847
|
+
void gnutls_transport_set_lowat (gnutls_session_t session, int num);
|
848
|
+
|
849
|
+
|
850
|
+
void gnutls_transport_set_push_function (gnutls_session_t session,
|
851
|
+
gnutls_push_func push_func);
|
852
|
+
void gnutls_transport_set_pull_function (gnutls_session_t session,
|
853
|
+
gnutls_pull_func pull_func);
|
854
|
+
|
855
|
+
void gnutls_transport_set_errno (gnutls_session_t session, int err);
|
856
|
+
void gnutls_transport_set_global_errno (int err);
|
857
|
+
|
858
|
+
/* session specific
|
859
|
+
*/
|
860
|
+
void gnutls_session_set_ptr (gnutls_session_t session, void *ptr);
|
861
|
+
void *gnutls_session_get_ptr (gnutls_session_t session);
|
862
|
+
|
863
|
+
void gnutls_openpgp_send_cert (gnutls_session_t session,
|
864
|
+
gnutls_openpgp_crt_status_t status);
|
865
|
+
|
866
|
+
/* fingerprint
|
867
|
+
* Actually this function returns the hash of the given data.
|
868
|
+
*/
|
869
|
+
int gnutls_fingerprint (gnutls_digest_algorithm_t algo,
|
870
|
+
const gnutls_datum_t * data, void *result,
|
871
|
+
size_t * result_size);
|
872
|
+
|
873
|
+
|
874
|
+
/* SRP
|
875
|
+
*/
|
876
|
+
|
877
|
+
typedef struct gnutls_srp_server_credentials_st
|
878
|
+
*gnutls_srp_server_credentials_t;
|
879
|
+
typedef struct gnutls_srp_client_credentials_st
|
880
|
+
*gnutls_srp_client_credentials_t;
|
881
|
+
|
882
|
+
void gnutls_srp_free_client_credentials (gnutls_srp_client_credentials_t
|
883
|
+
sc);
|
884
|
+
int gnutls_srp_allocate_client_credentials (gnutls_srp_client_credentials_t
|
885
|
+
* sc);
|
886
|
+
int gnutls_srp_set_client_credentials (gnutls_srp_client_credentials_t res,
|
887
|
+
const char *username, const char *password);
|
888
|
+
|
889
|
+
void gnutls_srp_free_server_credentials (gnutls_srp_server_credentials_t
|
890
|
+
sc);
|
891
|
+
int gnutls_srp_allocate_server_credentials (gnutls_srp_server_credentials_t
|
892
|
+
* sc);
|
893
|
+
int gnutls_srp_set_server_credentials_file (gnutls_srp_server_credentials_t
|
894
|
+
res, const char *password_file,
|
895
|
+
const char *password_conf_file);
|
896
|
+
|
897
|
+
const char *gnutls_srp_server_get_username (gnutls_session_t session);
|
898
|
+
|
899
|
+
extern int gnutls_srp_verifier (const char *username,
|
900
|
+
const char *password,
|
901
|
+
const gnutls_datum_t * salt,
|
902
|
+
const gnutls_datum_t * generator,
|
903
|
+
const gnutls_datum_t * prime,
|
904
|
+
gnutls_datum_t * res);
|
905
|
+
|
906
|
+
/* The static parameters defined in draft-ietf-tls-srp-05
|
907
|
+
* Those should be used as input to gnutls_srp_verifier().
|
908
|
+
*/
|
909
|
+
extern const gnutls_datum_t gnutls_srp_2048_group_prime;
|
910
|
+
extern const gnutls_datum_t gnutls_srp_2048_group_generator;
|
911
|
+
|
912
|
+
extern const gnutls_datum_t gnutls_srp_1536_group_prime;
|
913
|
+
extern const gnutls_datum_t gnutls_srp_1536_group_generator;
|
914
|
+
|
915
|
+
extern const gnutls_datum_t gnutls_srp_1024_group_prime;
|
916
|
+
extern const gnutls_datum_t gnutls_srp_1024_group_generator;
|
917
|
+
|
918
|
+
typedef int gnutls_srp_server_credentials_function (gnutls_session_t,
|
919
|
+
const char *username,
|
920
|
+
gnutls_datum_t * salt,
|
921
|
+
gnutls_datum_t *
|
922
|
+
verifier,
|
923
|
+
gnutls_datum_t *
|
924
|
+
generator,
|
925
|
+
gnutls_datum_t * prime);
|
926
|
+
void
|
927
|
+
gnutls_srp_set_server_credentials_function
|
928
|
+
(gnutls_srp_server_credentials_t cred,
|
929
|
+
gnutls_srp_server_credentials_function * func);
|
930
|
+
|
931
|
+
typedef int gnutls_srp_client_credentials_function (gnutls_session_t,
|
932
|
+
char **, char **);
|
933
|
+
void
|
934
|
+
gnutls_srp_set_client_credentials_function
|
935
|
+
(gnutls_srp_client_credentials_t cred,
|
936
|
+
gnutls_srp_client_credentials_function * func);
|
937
|
+
|
938
|
+
int gnutls_srp_base64_encode (const gnutls_datum_t * data, char *result,
|
939
|
+
size_t * result_size);
|
940
|
+
int gnutls_srp_base64_encode_alloc (const gnutls_datum_t * data,
|
941
|
+
gnutls_datum_t * result);
|
942
|
+
|
943
|
+
int gnutls_srp_base64_decode (const gnutls_datum_t * b64_data, char *result,
|
944
|
+
size_t * result_size);
|
945
|
+
int gnutls_srp_base64_decode_alloc (const gnutls_datum_t * b64_data,
|
946
|
+
gnutls_datum_t * result);
|
947
|
+
|
948
|
+
/* PSK stuff */
|
949
|
+
typedef struct gnutls_psk_server_credentials_st
|
950
|
+
*gnutls_psk_server_credentials_t;
|
951
|
+
typedef struct gnutls_psk_client_credentials_st
|
952
|
+
*gnutls_psk_client_credentials_t;
|
953
|
+
|
954
|
+
typedef enum gnutls_psk_key_flags
|
955
|
+
{
|
956
|
+
GNUTLS_PSK_KEY_RAW = 0,
|
957
|
+
GNUTLS_PSK_KEY_HEX
|
958
|
+
} gnutls_psk_key_flags;
|
959
|
+
|
960
|
+
void gnutls_psk_free_client_credentials (gnutls_psk_client_credentials_t
|
961
|
+
sc);
|
962
|
+
int gnutls_psk_allocate_client_credentials (gnutls_psk_client_credentials_t
|
963
|
+
* sc);
|
964
|
+
int gnutls_psk_set_client_credentials (gnutls_psk_client_credentials_t res,
|
965
|
+
const char *username,
|
966
|
+
const gnutls_datum_t * key,
|
967
|
+
gnutls_psk_key_flags format);
|
968
|
+
|
969
|
+
void gnutls_psk_free_server_credentials (gnutls_psk_server_credentials_t
|
970
|
+
sc);
|
971
|
+
int gnutls_psk_allocate_server_credentials (gnutls_psk_server_credentials_t
|
972
|
+
* sc);
|
973
|
+
int gnutls_psk_set_server_credentials_file (gnutls_psk_server_credentials_t
|
974
|
+
res, const char *password_file);
|
975
|
+
|
976
|
+
int
|
977
|
+
gnutls_psk_set_server_credentials_hint (gnutls_psk_server_credentials_t res,
|
978
|
+
const char *hint);
|
979
|
+
|
980
|
+
const char *gnutls_psk_server_get_username (gnutls_session_t session);
|
981
|
+
const char *gnutls_psk_client_get_hint (gnutls_session_t session);
|
982
|
+
|
983
|
+
typedef int gnutls_psk_server_credentials_function (gnutls_session_t,
|
984
|
+
const char *username,
|
985
|
+
gnutls_datum_t * key);
|
986
|
+
void
|
987
|
+
gnutls_psk_set_server_credentials_function
|
988
|
+
(gnutls_psk_server_credentials_t cred,
|
989
|
+
gnutls_psk_server_credentials_function * func);
|
990
|
+
|
991
|
+
typedef int gnutls_psk_client_credentials_function (gnutls_session_t,
|
992
|
+
char **username,
|
993
|
+
gnutls_datum_t * key);
|
994
|
+
void
|
995
|
+
gnutls_psk_set_client_credentials_function
|
996
|
+
(gnutls_psk_client_credentials_t cred,
|
997
|
+
gnutls_psk_client_credentials_function * func);
|
998
|
+
|
999
|
+
int gnutls_hex_encode (const gnutls_datum_t * data, char *result,
|
1000
|
+
size_t * result_size);
|
1001
|
+
int gnutls_hex_decode (const gnutls_datum_t * hex_data, char *result,
|
1002
|
+
size_t * result_size);
|
1003
|
+
|
1004
|
+
void gnutls_psk_set_server_dh_params (gnutls_psk_server_credentials_t res,
|
1005
|
+
gnutls_dh_params_t dh_params);
|
1006
|
+
|
1007
|
+
void gnutls_psk_set_server_params_function (gnutls_psk_server_credentials_t
|
1008
|
+
res,
|
1009
|
+
gnutls_params_function * func);
|
1010
|
+
|
1011
|
+
int gnutls_psk_netconf_derive_key (const char *password,
|
1012
|
+
const char *psk_identity,
|
1013
|
+
const char *psk_identity_hint,
|
1014
|
+
gnutls_datum_t *output_key);
|
1015
|
+
|
1016
|
+
|
1017
|
+
typedef enum gnutls_x509_subject_alt_name_t
|
1018
|
+
{
|
1019
|
+
GNUTLS_SAN_DNSNAME = 1,
|
1020
|
+
GNUTLS_SAN_RFC822NAME,
|
1021
|
+
GNUTLS_SAN_URI,
|
1022
|
+
GNUTLS_SAN_IPADDRESS,
|
1023
|
+
GNUTLS_SAN_OTHERNAME,
|
1024
|
+
GNUTLS_SAN_DN,
|
1025
|
+
/* The following are "virtual" subject alternative name types, in
|
1026
|
+
that they are represented by an otherName value and an OID.
|
1027
|
+
Used by gnutls_x509_crt_get_subject_alt_othername_oid(). */
|
1028
|
+
GNUTLS_SAN_OTHERNAME_XMPP = 1000
|
1029
|
+
} gnutls_x509_subject_alt_name_t;
|
1030
|
+
|
1031
|
+
struct gnutls_openpgp_crt_int;
|
1032
|
+
typedef struct gnutls_openpgp_crt_int *gnutls_openpgp_crt_t;
|
1033
|
+
|
1034
|
+
struct gnutls_openpgp_privkey_int;
|
1035
|
+
typedef struct gnutls_openpgp_privkey_int *gnutls_openpgp_privkey_t;
|
1036
|
+
|
1037
|
+
typedef struct gnutls_retr_st
|
1038
|
+
{
|
1039
|
+
gnutls_certificate_type_t type;
|
1040
|
+
union cert
|
1041
|
+
{
|
1042
|
+
gnutls_x509_crt_t *x509;
|
1043
|
+
gnutls_openpgp_crt_t pgp;
|
1044
|
+
} cert;
|
1045
|
+
unsigned int ncerts; /* one for pgp keys */
|
1046
|
+
|
1047
|
+
union key
|
1048
|
+
{
|
1049
|
+
gnutls_x509_privkey_t x509;
|
1050
|
+
gnutls_openpgp_privkey_t pgp;
|
1051
|
+
} key;
|
1052
|
+
|
1053
|
+
unsigned int deinit_all; /* if non zero all keys will be deinited */
|
1054
|
+
} gnutls_retr_st;
|
1055
|
+
|
1056
|
+
typedef int gnutls_certificate_client_retrieve_function (gnutls_session_t,
|
1057
|
+
const
|
1058
|
+
gnutls_datum_t *
|
1059
|
+
req_ca_rdn,
|
1060
|
+
int nreqs,
|
1061
|
+
const
|
1062
|
+
gnutls_pk_algorithm_t
|
1063
|
+
* pk_algos,
|
1064
|
+
int
|
1065
|
+
pk_algos_length,
|
1066
|
+
gnutls_retr_st *);
|
1067
|
+
typedef int gnutls_certificate_server_retrieve_function (gnutls_session_t,
|
1068
|
+
gnutls_retr_st *);
|
1069
|
+
|
1070
|
+
|
1071
|
+
/* Functions that allow auth_info_t structures handling
|
1072
|
+
*/
|
1073
|
+
|
1074
|
+
gnutls_credentials_type_t gnutls_auth_get_type (gnutls_session_t session);
|
1075
|
+
gnutls_credentials_type_t
|
1076
|
+
gnutls_auth_server_get_type (gnutls_session_t session);
|
1077
|
+
gnutls_credentials_type_t
|
1078
|
+
gnutls_auth_client_get_type (gnutls_session_t session);
|
1079
|
+
|
1080
|
+
/* DH */
|
1081
|
+
|
1082
|
+
void gnutls_dh_set_prime_bits (gnutls_session_t session, unsigned int bits);
|
1083
|
+
int gnutls_dh_get_secret_bits (gnutls_session_t session);
|
1084
|
+
int gnutls_dh_get_peers_public_bits (gnutls_session_t session);
|
1085
|
+
int gnutls_dh_get_prime_bits (gnutls_session_t session);
|
1086
|
+
|
1087
|
+
int gnutls_dh_get_group (gnutls_session_t session, gnutls_datum_t * raw_gen,
|
1088
|
+
gnutls_datum_t * raw_prime);
|
1089
|
+
int gnutls_dh_get_pubkey (gnutls_session_t session,
|
1090
|
+
gnutls_datum_t * raw_key);
|
1091
|
+
|
1092
|
+
/* RSA */
|
1093
|
+
int gnutls_rsa_export_get_pubkey (gnutls_session_t session,
|
1094
|
+
gnutls_datum_t * exponent,
|
1095
|
+
gnutls_datum_t * modulus);
|
1096
|
+
int gnutls_rsa_export_get_modulus_bits (gnutls_session_t session);
|
1097
|
+
|
1098
|
+
/* X509PKI */
|
1099
|
+
|
1100
|
+
/* External signing callback. Experimental. */
|
1101
|
+
typedef int (*gnutls_sign_func) (gnutls_session_t session,
|
1102
|
+
void *userdata,
|
1103
|
+
gnutls_certificate_type_t cert_type,
|
1104
|
+
const gnutls_datum_t * cert,
|
1105
|
+
const gnutls_datum_t * hash,
|
1106
|
+
gnutls_datum_t * signature);
|
1107
|
+
|
1108
|
+
void gnutls_sign_callback_set (gnutls_session_t session,
|
1109
|
+
gnutls_sign_func sign_func,
|
1110
|
+
void *userdata);
|
1111
|
+
gnutls_sign_func
|
1112
|
+
gnutls_sign_callback_get (gnutls_session_t session,
|
1113
|
+
void **userdata);
|
1114
|
+
|
1115
|
+
/* These are set on the credentials structure.
|
1116
|
+
*/
|
1117
|
+
void gnutls_certificate_client_set_retrieve_function
|
1118
|
+
(gnutls_certificate_credentials_t cred,
|
1119
|
+
gnutls_certificate_client_retrieve_function * func);
|
1120
|
+
void gnutls_certificate_server_set_retrieve_function
|
1121
|
+
(gnutls_certificate_credentials_t cred,
|
1122
|
+
gnutls_certificate_server_retrieve_function * func);
|
1123
|
+
|
1124
|
+
void gnutls_certificate_server_set_request (gnutls_session_t session,
|
1125
|
+
gnutls_certificate_request_t
|
1126
|
+
req);
|
1127
|
+
|
1128
|
+
/* get data from the session
|
1129
|
+
*/
|
1130
|
+
const gnutls_datum_t *gnutls_certificate_get_peers (gnutls_session_t
|
1131
|
+
session,
|
1132
|
+
unsigned int
|
1133
|
+
*list_size);
|
1134
|
+
const gnutls_datum_t *gnutls_certificate_get_ours (gnutls_session_t
|
1135
|
+
session);
|
1136
|
+
|
1137
|
+
time_t gnutls_certificate_activation_time_peers (gnutls_session_t session);
|
1138
|
+
time_t gnutls_certificate_expiration_time_peers (gnutls_session_t session);
|
1139
|
+
|
1140
|
+
int gnutls_certificate_client_get_request_status (gnutls_session_t session);
|
1141
|
+
int gnutls_certificate_verify_peers2 (gnutls_session_t session,
|
1142
|
+
unsigned int *status);
|
1143
|
+
|
1144
|
+
/* this is obsolete (?). */
|
1145
|
+
int gnutls_certificate_verify_peers (gnutls_session_t session);
|
1146
|
+
|
1147
|
+
int gnutls_pem_base64_encode (const char *msg, const gnutls_datum_t * data,
|
1148
|
+
char *result, size_t * result_size);
|
1149
|
+
int gnutls_pem_base64_decode (const char *header,
|
1150
|
+
const gnutls_datum_t * b64_data,
|
1151
|
+
unsigned char *result, size_t * result_size);
|
1152
|
+
|
1153
|
+
int gnutls_pem_base64_encode_alloc (const char *msg,
|
1154
|
+
const gnutls_datum_t * data,
|
1155
|
+
gnutls_datum_t * result);
|
1156
|
+
int gnutls_pem_base64_decode_alloc (const char *header,
|
1157
|
+
const gnutls_datum_t * b64_data,
|
1158
|
+
gnutls_datum_t * result);
|
1159
|
+
|
1160
|
+
/* key_usage will be an OR of the following values:
|
1161
|
+
*/
|
1162
|
+
|
1163
|
+
/* when the key is to be used for signing: */
|
1164
|
+
#define GNUTLS_KEY_DIGITAL_SIGNATURE 128
|
1165
|
+
#define GNUTLS_KEY_NON_REPUDIATION 64
|
1166
|
+
/* when the key is to be used for encryption: */
|
1167
|
+
#define GNUTLS_KEY_KEY_ENCIPHERMENT 32
|
1168
|
+
#define GNUTLS_KEY_DATA_ENCIPHERMENT 16
|
1169
|
+
#define GNUTLS_KEY_KEY_AGREEMENT 8
|
1170
|
+
#define GNUTLS_KEY_KEY_CERT_SIGN 4
|
1171
|
+
#define GNUTLS_KEY_CRL_SIGN 2
|
1172
|
+
#define GNUTLS_KEY_ENCIPHER_ONLY 1
|
1173
|
+
#define GNUTLS_KEY_DECIPHER_ONLY 32768
|
1174
|
+
|
1175
|
+
void
|
1176
|
+
gnutls_certificate_set_params_function (gnutls_certificate_credentials_t res,
|
1177
|
+
gnutls_params_function * func);
|
1178
|
+
void gnutls_anon_set_params_function (gnutls_anon_server_credentials_t res,
|
1179
|
+
gnutls_params_function * func);
|
1180
|
+
void gnutls_psk_set_params_function (gnutls_psk_server_credentials_t res,
|
1181
|
+
gnutls_params_function * func);
|
1182
|
+
|
1183
|
+
int gnutls_hex2bin (const char * hex_data, size_t hex_size,
|
1184
|
+
char * bin_data, size_t * bin_size);
|
1185
|
+
|
1186
|
+
/* Gnutls error codes. The mapping to a TLS alert is also shown in
|
1187
|
+
* comments.
|
1188
|
+
*/
|
1189
|
+
|
1190
|
+
#define GNUTLS_E_SUCCESS 0
|
1191
|
+
#define GNUTLS_E_UNKNOWN_COMPRESSION_ALGORITHM -3
|
1192
|
+
#define GNUTLS_E_UNKNOWN_CIPHER_TYPE -6
|
1193
|
+
#define GNUTLS_E_LARGE_PACKET -7
|
1194
|
+
#define GNUTLS_E_UNSUPPORTED_VERSION_PACKET -8 /* GNUTLS_A_PROTOCOL_VERSION */
|
1195
|
+
#define GNUTLS_E_UNEXPECTED_PACKET_LENGTH -9 /* GNUTLS_A_RECORD_OVERFLOW */
|
1196
|
+
#define GNUTLS_E_INVALID_SESSION -10
|
1197
|
+
#define GNUTLS_E_FATAL_ALERT_RECEIVED -12
|
1198
|
+
#define GNUTLS_E_UNEXPECTED_PACKET -15 /* GNUTLS_A_UNEXPECTED_MESSAGE */
|
1199
|
+
#define GNUTLS_E_WARNING_ALERT_RECEIVED -16
|
1200
|
+
#define GNUTLS_E_ERROR_IN_FINISHED_PACKET -18
|
1201
|
+
#define GNUTLS_E_UNEXPECTED_HANDSHAKE_PACKET -19
|
1202
|
+
#define GNUTLS_E_UNKNOWN_CIPHER_SUITE -21 /* GNUTLS_A_HANDSHAKE_FAILURE */
|
1203
|
+
#define GNUTLS_E_UNWANTED_ALGORITHM -22
|
1204
|
+
#define GNUTLS_E_MPI_SCAN_FAILED -23
|
1205
|
+
#define GNUTLS_E_DECRYPTION_FAILED -24 /* GNUTLS_A_DECRYPTION_FAILED, GNUTLS_A_BAD_RECORD_MAC */
|
1206
|
+
#define GNUTLS_E_MEMORY_ERROR -25
|
1207
|
+
#define GNUTLS_E_DECOMPRESSION_FAILED -26 /* GNUTLS_A_DECOMPRESSION_FAILURE */
|
1208
|
+
#define GNUTLS_E_COMPRESSION_FAILED -27
|
1209
|
+
#define GNUTLS_E_AGAIN -28
|
1210
|
+
#define GNUTLS_E_EXPIRED -29
|
1211
|
+
#define GNUTLS_E_DB_ERROR -30
|
1212
|
+
#define GNUTLS_E_SRP_PWD_ERROR -31
|
1213
|
+
#define GNUTLS_E_INSUFFICIENT_CREDENTIALS -32
|
1214
|
+
#define GNUTLS_E_INSUFICIENT_CREDENTIALS GNUTLS_E_INSUFFICIENT_CREDENTIALS /* for backwards compatibility only */
|
1215
|
+
#define GNUTLS_E_INSUFFICIENT_CRED GNUTLS_E_INSUFFICIENT_CREDENTIALS
|
1216
|
+
#define GNUTLS_E_INSUFICIENT_CRED GNUTLS_E_INSUFFICIENT_CREDENTIALS /* for backwards compatibility only */
|
1217
|
+
|
1218
|
+
#define GNUTLS_E_HASH_FAILED -33
|
1219
|
+
#define GNUTLS_E_BASE64_DECODING_ERROR -34
|
1220
|
+
|
1221
|
+
#define GNUTLS_E_MPI_PRINT_FAILED -35
|
1222
|
+
#define GNUTLS_E_REHANDSHAKE -37 /* GNUTLS_A_NO_RENEGOTIATION */
|
1223
|
+
#define GNUTLS_E_GOT_APPLICATION_DATA -38
|
1224
|
+
#define GNUTLS_E_RECORD_LIMIT_REACHED -39
|
1225
|
+
#define GNUTLS_E_ENCRYPTION_FAILED -40
|
1226
|
+
|
1227
|
+
#define GNUTLS_E_PK_ENCRYPTION_FAILED -44
|
1228
|
+
#define GNUTLS_E_PK_DECRYPTION_FAILED -45
|
1229
|
+
#define GNUTLS_E_PK_SIGN_FAILED -46
|
1230
|
+
#define GNUTLS_E_X509_UNSUPPORTED_CRITICAL_EXTENSION -47
|
1231
|
+
#define GNUTLS_E_KEY_USAGE_VIOLATION -48
|
1232
|
+
#define GNUTLS_E_NO_CERTIFICATE_FOUND -49 /* GNUTLS_A_BAD_CERTIFICATE */
|
1233
|
+
#define GNUTLS_E_INVALID_REQUEST -50
|
1234
|
+
#define GNUTLS_E_SHORT_MEMORY_BUFFER -51
|
1235
|
+
#define GNUTLS_E_INTERRUPTED -52
|
1236
|
+
#define GNUTLS_E_PUSH_ERROR -53
|
1237
|
+
#define GNUTLS_E_PULL_ERROR -54
|
1238
|
+
#define GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER -55 /* GNUTLS_A_ILLEGAL_PARAMETER */
|
1239
|
+
#define GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE -56
|
1240
|
+
#define GNUTLS_E_PKCS1_WRONG_PAD -57
|
1241
|
+
#define GNUTLS_E_RECEIVED_ILLEGAL_EXTENSION -58
|
1242
|
+
#define GNUTLS_E_INTERNAL_ERROR -59
|
1243
|
+
#define GNUTLS_E_DH_PRIME_UNACCEPTABLE -63
|
1244
|
+
#define GNUTLS_E_FILE_ERROR -64
|
1245
|
+
#define GNUTLS_E_TOO_MANY_EMPTY_PACKETS -78
|
1246
|
+
#define GNUTLS_E_UNKNOWN_PK_ALGORITHM -80
|
1247
|
+
|
1248
|
+
|
1249
|
+
/* returned if libextra functionality was requested but
|
1250
|
+
* gnutls_global_init_extra() was not called.
|
1251
|
+
*/
|
1252
|
+
#define GNUTLS_E_INIT_LIBEXTRA -82
|
1253
|
+
#define GNUTLS_E_LIBRARY_VERSION_MISMATCH -83
|
1254
|
+
|
1255
|
+
|
1256
|
+
/* returned if you need to generate temporary RSA
|
1257
|
+
* parameters. These are needed for export cipher suites.
|
1258
|
+
*/
|
1259
|
+
#define GNUTLS_E_NO_TEMPORARY_RSA_PARAMS -84
|
1260
|
+
|
1261
|
+
#define GNUTLS_E_LZO_INIT_FAILED -85
|
1262
|
+
#define GNUTLS_E_NO_COMPRESSION_ALGORITHMS -86
|
1263
|
+
#define GNUTLS_E_NO_CIPHER_SUITES -87
|
1264
|
+
|
1265
|
+
#define GNUTLS_E_OPENPGP_GETKEY_FAILED -88
|
1266
|
+
#define GNUTLS_E_PK_SIG_VERIFY_FAILED -89
|
1267
|
+
|
1268
|
+
#define GNUTLS_E_ILLEGAL_SRP_USERNAME -90
|
1269
|
+
#define GNUTLS_E_SRP_PWD_PARSING_ERROR -91
|
1270
|
+
#define GNUTLS_E_NO_TEMPORARY_DH_PARAMS -93
|
1271
|
+
|
1272
|
+
/* For certificate and key stuff
|
1273
|
+
*/
|
1274
|
+
#define GNUTLS_E_ASN1_ELEMENT_NOT_FOUND -67
|
1275
|
+
#define GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND -68
|
1276
|
+
#define GNUTLS_E_ASN1_DER_ERROR -69
|
1277
|
+
#define GNUTLS_E_ASN1_VALUE_NOT_FOUND -70
|
1278
|
+
#define GNUTLS_E_ASN1_GENERIC_ERROR -71
|
1279
|
+
#define GNUTLS_E_ASN1_VALUE_NOT_VALID -72
|
1280
|
+
#define GNUTLS_E_ASN1_TAG_ERROR -73
|
1281
|
+
#define GNUTLS_E_ASN1_TAG_IMPLICIT -74
|
1282
|
+
#define GNUTLS_E_ASN1_TYPE_ANY_ERROR -75
|
1283
|
+
#define GNUTLS_E_ASN1_SYNTAX_ERROR -76
|
1284
|
+
#define GNUTLS_E_ASN1_DER_OVERFLOW -77
|
1285
|
+
#define GNUTLS_E_OPENPGP_UID_REVOKED -79
|
1286
|
+
#define GNUTLS_E_CERTIFICATE_ERROR -43
|
1287
|
+
#define GNUTLS_E_X509_CERTIFICATE_ERROR GNUTLS_E_CERTIFICATE_ERROR
|
1288
|
+
#define GNUTLS_E_CERTIFICATE_KEY_MISMATCH -60
|
1289
|
+
#define GNUTLS_E_UNSUPPORTED_CERTIFICATE_TYPE -61 /* GNUTLS_A_UNSUPPORTED_CERTIFICATE */
|
1290
|
+
#define GNUTLS_E_X509_UNKNOWN_SAN -62
|
1291
|
+
#define GNUTLS_E_OPENPGP_FINGERPRINT_UNSUPPORTED -94
|
1292
|
+
#define GNUTLS_E_X509_UNSUPPORTED_ATTRIBUTE -95
|
1293
|
+
#define GNUTLS_E_UNKNOWN_HASH_ALGORITHM -96
|
1294
|
+
#define GNUTLS_E_UNKNOWN_PKCS_CONTENT_TYPE -97
|
1295
|
+
#define GNUTLS_E_UNKNOWN_PKCS_BAG_TYPE -98
|
1296
|
+
#define GNUTLS_E_INVALID_PASSWORD -99
|
1297
|
+
#define GNUTLS_E_MAC_VERIFY_FAILED -100 /* for PKCS #12 MAC */
|
1298
|
+
#define GNUTLS_E_CONSTRAINT_ERROR -101
|
1299
|
+
|
1300
|
+
#define GNUTLS_E_WARNING_IA_IPHF_RECEIVED -102
|
1301
|
+
#define GNUTLS_E_WARNING_IA_FPHF_RECEIVED -103
|
1302
|
+
|
1303
|
+
#define GNUTLS_E_IA_VERIFY_FAILED -104
|
1304
|
+
|
1305
|
+
#define GNUTLS_E_UNKNOWN_ALGORITHM -105
|
1306
|
+
|
1307
|
+
#define GNUTLS_E_BASE64_ENCODING_ERROR -201
|
1308
|
+
#define GNUTLS_E_INCOMPATIBLE_GCRYPT_LIBRARY -202 /* obsolete */
|
1309
|
+
#define GNUTLS_E_INCOMPATIBLE_CRYPTO_LIBRARY -202
|
1310
|
+
#define GNUTLS_E_INCOMPATIBLE_LIBTASN1_LIBRARY -203
|
1311
|
+
|
1312
|
+
#define GNUTLS_E_OPENPGP_KEYRING_ERROR -204
|
1313
|
+
#define GNUTLS_E_X509_UNSUPPORTED_OID -205
|
1314
|
+
|
1315
|
+
#define GNUTLS_E_RANDOM_FAILED -206
|
1316
|
+
#define GNUTLS_E_BASE64_UNEXPECTED_HEADER_ERROR -207
|
1317
|
+
|
1318
|
+
#define GNUTLS_E_OPENPGP_SUBKEY_ERROR -208
|
1319
|
+
|
1320
|
+
#define GNUTLS_E_CRYPTO_ALREADY_REGISTERED -209
|
1321
|
+
|
1322
|
+
#define GNUTLS_E_HANDSHAKE_TOO_LARGE -210
|
1323
|
+
|
1324
|
+
#define GNUTLS_E_UNIMPLEMENTED_FEATURE -1250
|
1325
|
+
|
1326
|
+
#define GNUTLS_E_APPLICATION_ERROR_MAX -65000
|
1327
|
+
#define GNUTLS_E_APPLICATION_ERROR_MIN -65500
|
1328
|
+
|
1329
|
+
#ifdef __cplusplus
|
1330
|
+
}
|
1331
|
+
#endif
|
1332
|
+
|
1333
|
+
#endif /* GNUTLS_H */
|