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,335 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (C) 2004, 2005, 2007 Free Software Foundation
|
3
|
+
* Copyright (c) 2002 Andrew McDonald <andrew@mcdonald.org.uk>
|
4
|
+
*
|
5
|
+
* This file is part of GNUTLS-EXTRA.
|
6
|
+
*
|
7
|
+
* GNUTLS-EXTRA is free software; you can redistribute it and/or
|
8
|
+
* modify it under the terms of the GNU General Public License as
|
9
|
+
* published by the Free Software Foundation; either version 3 of the
|
10
|
+
* License, or (at your option) any later version.
|
11
|
+
*
|
12
|
+
* GNUTLS-EXTRA is distributed in the hope that it will be useful, but
|
13
|
+
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
15
|
+
* General Public License for more details.
|
16
|
+
*
|
17
|
+
* You should have received a copy of the GNU General Public License
|
18
|
+
* along with GNUTLS-EXTRA; if not, write to the Free Software
|
19
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
20
|
+
* 02110-1301, USA.
|
21
|
+
*
|
22
|
+
*/
|
23
|
+
|
24
|
+
/* WARNING: Error functions aren't currently thread-safe */
|
25
|
+
|
26
|
+
/* This file contains prototypes about the OPENSSL compatibility
|
27
|
+
* layer in GNUTLS. GNUTLS is not a replacement of OPENSSL so
|
28
|
+
* this compatibility layer only support limited OPENSSL functionality.
|
29
|
+
*
|
30
|
+
* New programs should avoid using this compatibility layer, and
|
31
|
+
* use the native GNUTLS API.
|
32
|
+
*/
|
33
|
+
|
34
|
+
#ifndef GNUTLS_OPENSSL_H
|
35
|
+
#define GNUTLS_OPENSSL_H
|
36
|
+
|
37
|
+
#ifdef __cplusplus
|
38
|
+
extern "C"
|
39
|
+
{
|
40
|
+
#endif
|
41
|
+
|
42
|
+
#include <gnutls/gnutls.h>
|
43
|
+
|
44
|
+
/* Extra definitions that do not longer exist in gnutls.
|
45
|
+
*/
|
46
|
+
#define GNUTLS_X509_CN_SIZE 256
|
47
|
+
#define GNUTLS_X509_C_SIZE 3
|
48
|
+
#define GNUTLS_X509_O_SIZE 256
|
49
|
+
#define GNUTLS_X509_OU_SIZE 256
|
50
|
+
#define GNUTLS_X509_L_SIZE 256
|
51
|
+
#define GNUTLS_X509_S_SIZE 256
|
52
|
+
#define GNUTLS_X509_EMAIL_SIZE 256
|
53
|
+
|
54
|
+
typedef struct
|
55
|
+
{
|
56
|
+
char common_name[GNUTLS_X509_CN_SIZE];
|
57
|
+
char country[GNUTLS_X509_C_SIZE];
|
58
|
+
char organization[GNUTLS_X509_O_SIZE];
|
59
|
+
char organizational_unit_name[GNUTLS_X509_OU_SIZE];
|
60
|
+
char locality_name[GNUTLS_X509_L_SIZE];
|
61
|
+
char state_or_province_name[GNUTLS_X509_S_SIZE];
|
62
|
+
char email[GNUTLS_X509_EMAIL_SIZE];
|
63
|
+
} gnutls_x509_dn;
|
64
|
+
|
65
|
+
|
66
|
+
#define OPENSSL_VERSION_NUMBER (0x0090604F)
|
67
|
+
#define SSLEAY_VERSION_NUMBER OPENSSL_VERSION_NUMBER
|
68
|
+
#define OPENSSL_VERSION_TEXT ("GNUTLS " LIBGNUTLS_VERSION " ")
|
69
|
+
|
70
|
+
#define SSL_ERROR_NONE (0)
|
71
|
+
#define SSL_ERROR_SSL (1)
|
72
|
+
#define SSL_ERROR_WANT_READ (2)
|
73
|
+
#define SSL_ERROR_WANT_WRITE (3)
|
74
|
+
#define SSL_ERROR_SYSCALL (5)
|
75
|
+
#define SSL_ERROR_ZERO_RETURN (6)
|
76
|
+
|
77
|
+
#define SSL_FILETYPE_PEM (GNUTLS_X509_FMT_PEM)
|
78
|
+
|
79
|
+
#define SSL_VERIFY_NONE (0)
|
80
|
+
|
81
|
+
#define SSL_ST_OK (1)
|
82
|
+
|
83
|
+
#define X509_V_ERR_CERT_NOT_YET_VALID (1)
|
84
|
+
#define X509_V_ERR_CERT_HAS_EXPIRED (2)
|
85
|
+
#define X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT (3)
|
86
|
+
|
87
|
+
#define SSL_OP_ALL (0x000FFFFF)
|
88
|
+
#define SSL_OP_NO_TLSv1 (0x0400000)
|
89
|
+
|
90
|
+
#define SSL_MODE_ENABLE_PARTIAL_WRITE (0x1)
|
91
|
+
#define SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER (0x2)
|
92
|
+
#define SSL_MODE_AUTO_RETRY (0x4)
|
93
|
+
|
94
|
+
typedef gnutls_x509_dn X509_NAME;
|
95
|
+
typedef gnutls_datum_t X509;
|
96
|
+
|
97
|
+
typedef struct _SSL SSL;
|
98
|
+
|
99
|
+
typedef struct
|
100
|
+
{
|
101
|
+
int protocol_priority[GNUTLS_MAX_ALGORITHM_NUM];
|
102
|
+
int cipher_priority[GNUTLS_MAX_ALGORITHM_NUM];
|
103
|
+
int comp_priority[GNUTLS_MAX_ALGORITHM_NUM];
|
104
|
+
int kx_priority[GNUTLS_MAX_ALGORITHM_NUM];
|
105
|
+
int mac_priority[GNUTLS_MAX_ALGORITHM_NUM];
|
106
|
+
gnutls_connection_end_t connend;
|
107
|
+
} SSL_METHOD;
|
108
|
+
|
109
|
+
typedef struct
|
110
|
+
{
|
111
|
+
gnutls_protocol_t version;
|
112
|
+
gnutls_cipher_algorithm_t cipher;
|
113
|
+
gnutls_kx_algorithm_t kx;
|
114
|
+
gnutls_mac_algorithm_t mac;
|
115
|
+
gnutls_compression_method_t compression;
|
116
|
+
gnutls_certificate_type_t cert;
|
117
|
+
} SSL_CIPHER;
|
118
|
+
|
119
|
+
typedef struct _BIO
|
120
|
+
{
|
121
|
+
gnutls_transport_ptr_t fd;
|
122
|
+
} BIO;
|
123
|
+
|
124
|
+
typedef struct
|
125
|
+
{
|
126
|
+
SSL *ssl;
|
127
|
+
int error;
|
128
|
+
const gnutls_datum_t *cert_list;
|
129
|
+
#define current_cert cert_list
|
130
|
+
} X509_STORE_CTX;
|
131
|
+
|
132
|
+
#define X509_STORE_CTX_get_current_cert(ctx) ((ctx)->current_cert)
|
133
|
+
|
134
|
+
typedef struct _SSL_CTX
|
135
|
+
{
|
136
|
+
SSL_METHOD *method;
|
137
|
+
char *certfile;
|
138
|
+
int certfile_type;
|
139
|
+
char *keyfile;
|
140
|
+
int keyfile_type;
|
141
|
+
unsigned long options;
|
142
|
+
|
143
|
+
int (*verify_callback) (int, X509_STORE_CTX *);
|
144
|
+
int verify_mode;
|
145
|
+
|
146
|
+
} SSL_CTX;
|
147
|
+
|
148
|
+
struct _SSL
|
149
|
+
{
|
150
|
+
gnutls_session_t gnutls_state;
|
151
|
+
|
152
|
+
gnutls_certificate_client_credentials gnutls_cred;
|
153
|
+
|
154
|
+
SSL_CTX *ctx;
|
155
|
+
SSL_CIPHER ciphersuite;
|
156
|
+
|
157
|
+
int last_error;
|
158
|
+
int shutdown;
|
159
|
+
int state;
|
160
|
+
unsigned long options;
|
161
|
+
|
162
|
+
int (*verify_callback) (int, X509_STORE_CTX *);
|
163
|
+
int verify_mode;
|
164
|
+
|
165
|
+
gnutls_transport_ptr_t rfd;
|
166
|
+
gnutls_transport_ptr_t wfd;
|
167
|
+
};
|
168
|
+
|
169
|
+
#define rbio gnutls_state
|
170
|
+
|
171
|
+
typedef struct
|
172
|
+
{
|
173
|
+
void *handle;
|
174
|
+
} MD_CTX;
|
175
|
+
|
176
|
+
struct rsa_st;
|
177
|
+
typedef struct rsa_st RSA;
|
178
|
+
|
179
|
+
#define MD5_CTX MD_CTX
|
180
|
+
#define RIPEMD160_CTX MD_CTX
|
181
|
+
|
182
|
+
#define OpenSSL_add_ssl_algorithms() SSL_library_init()
|
183
|
+
#define SSLeay_add_ssl_algorithms() SSL_library_init()
|
184
|
+
#define SSLeay_add_all_algorithms() OpenSSL_add_all_algorithms()
|
185
|
+
|
186
|
+
#define SSL_get_cipher_name(ssl) SSL_CIPHER_get_name(SSL_get_current_cipher(ssl))
|
187
|
+
#define SSL_get_cipher(ssl) SSL_get_cipher_name(ssl)
|
188
|
+
#define SSL_get_cipher_bits(ssl,bp) SSL_CIPHER_get_bits(SSL_get_current_cipher(ssl),(bp))
|
189
|
+
#define SSL_get_cipher_version(ssl) SSL_CIPHER_get_version(SSL_get_current_cipher(ssl))
|
190
|
+
|
191
|
+
|
192
|
+
/* Library initialisation functions */
|
193
|
+
|
194
|
+
int SSL_library_init (void);
|
195
|
+
void OpenSSL_add_all_algorithms (void);
|
196
|
+
|
197
|
+
|
198
|
+
/* SSL_CTX structure handling */
|
199
|
+
|
200
|
+
SSL_CTX *SSL_CTX_new (SSL_METHOD * method);
|
201
|
+
void SSL_CTX_free (SSL_CTX * ctx);
|
202
|
+
int SSL_CTX_set_default_verify_paths (SSL_CTX * ctx);
|
203
|
+
int SSL_CTX_use_certificate_file (SSL_CTX * ctx, const char *certfile,
|
204
|
+
int type);
|
205
|
+
int SSL_CTX_use_PrivateKey_file (SSL_CTX * ctx, const char *keyfile,
|
206
|
+
int type);
|
207
|
+
void SSL_CTX_set_verify (SSL_CTX * ctx, int verify_mode,
|
208
|
+
int (*verify_callback) (int, X509_STORE_CTX *));
|
209
|
+
unsigned long SSL_CTX_set_options (SSL_CTX * ctx, unsigned long options);
|
210
|
+
long SSL_CTX_set_mode (SSL_CTX * ctx, long mode);
|
211
|
+
int SSL_CTX_set_cipher_list (SSL_CTX * ctx, const char *list);
|
212
|
+
|
213
|
+
|
214
|
+
/* SSL_CTX statistics */
|
215
|
+
|
216
|
+
long SSL_CTX_sess_number (SSL_CTX * ctx);
|
217
|
+
long SSL_CTX_sess_connect (SSL_CTX * ctx);
|
218
|
+
long SSL_CTX_sess_connect_good (SSL_CTX * ctx);
|
219
|
+
long SSL_CTX_sess_connect_renegotiate (SSL_CTX * ctx);
|
220
|
+
long SSL_CTX_sess_accept (SSL_CTX * ctx);
|
221
|
+
long SSL_CTX_sess_accept_good (SSL_CTX * ctx);
|
222
|
+
long SSL_CTX_sess_accept_renegotiate (SSL_CTX * ctx);
|
223
|
+
long SSL_CTX_sess_hits (SSL_CTX * ctx);
|
224
|
+
long SSL_CTX_sess_misses (SSL_CTX * ctx);
|
225
|
+
long SSL_CTX_sess_timeouts (SSL_CTX * ctx);
|
226
|
+
|
227
|
+
|
228
|
+
/* SSL structure handling */
|
229
|
+
|
230
|
+
SSL *SSL_new (SSL_CTX * ctx);
|
231
|
+
void SSL_free (SSL * ssl);
|
232
|
+
void SSL_load_error_strings (void);
|
233
|
+
int SSL_get_error (SSL * ssl, int ret);
|
234
|
+
int SSL_set_fd (SSL * ssl, int fd);
|
235
|
+
int SSL_set_rfd (SSL * ssl, int fd);
|
236
|
+
int SSL_set_wfd (SSL * ssl, int fd);
|
237
|
+
void SSL_set_bio (SSL * ssl, BIO * rbio, BIO * wbio);
|
238
|
+
void SSL_set_connect_state (SSL * ssl);
|
239
|
+
int SSL_pending (SSL * ssl);
|
240
|
+
void SSL_set_verify (SSL * ssl, int verify_mode,
|
241
|
+
int (*verify_callback) (int, X509_STORE_CTX *));
|
242
|
+
const X509 *SSL_get_peer_certificate (SSL * ssl);
|
243
|
+
|
244
|
+
/* SSL connection open/close/read/write functions */
|
245
|
+
|
246
|
+
int SSL_connect (SSL * ssl);
|
247
|
+
int SSL_accept (SSL * ssl);
|
248
|
+
int SSL_shutdown (SSL * ssl);
|
249
|
+
int SSL_read (SSL * ssl, void *buf, int len);
|
250
|
+
int SSL_write (SSL * ssl, const void *buf, int len);
|
251
|
+
|
252
|
+
int SSL_want (SSL * ssl);
|
253
|
+
|
254
|
+
#define SSL_NOTHING (1)
|
255
|
+
#define SSL_WRITING (2)
|
256
|
+
#define SSL_READING (3)
|
257
|
+
#define SSL_X509_LOOKUP (4)
|
258
|
+
|
259
|
+
#define SSL_want_nothing(s) (SSL_want(s) == SSL_NOTHING)
|
260
|
+
#define SSL_want_read(s) (SSL_want(s) == SSL_READING)
|
261
|
+
#define SSL_want_write(s) (SSL_want(s) == SSL_WRITING)
|
262
|
+
#define SSL_want_x509_lookup(s) (SSL_want(s) == SSL_X509_LOOKUP)
|
263
|
+
|
264
|
+
|
265
|
+
/* SSL_METHOD functions */
|
266
|
+
|
267
|
+
SSL_METHOD *SSLv23_client_method (void);
|
268
|
+
SSL_METHOD *SSLv23_server_method (void);
|
269
|
+
SSL_METHOD *SSLv3_client_method (void);
|
270
|
+
SSL_METHOD *SSLv3_server_method (void);
|
271
|
+
SSL_METHOD *TLSv1_client_method (void);
|
272
|
+
SSL_METHOD *TLSv1_server_method (void);
|
273
|
+
|
274
|
+
|
275
|
+
/* SSL_CIPHER functions */
|
276
|
+
|
277
|
+
SSL_CIPHER *SSL_get_current_cipher (SSL * ssl);
|
278
|
+
const char *SSL_CIPHER_get_name (SSL_CIPHER * cipher);
|
279
|
+
int SSL_CIPHER_get_bits (SSL_CIPHER * cipher, int *bits);
|
280
|
+
const char *SSL_CIPHER_get_version (SSL_CIPHER * cipher);
|
281
|
+
char *SSL_CIPHER_description (SSL_CIPHER * cipher, char *buf, int size);
|
282
|
+
|
283
|
+
|
284
|
+
/* X509 functions */
|
285
|
+
|
286
|
+
X509_NAME *X509_get_subject_name (const X509 * cert);
|
287
|
+
X509_NAME *X509_get_issuer_name (const X509 * cert);
|
288
|
+
char *X509_NAME_oneline (gnutls_x509_dn * name, char *buf, int len);
|
289
|
+
void X509_free (const X509 * cert);
|
290
|
+
|
291
|
+
|
292
|
+
/* BIO functions */
|
293
|
+
|
294
|
+
void BIO_get_fd (gnutls_session_t gnutls_state, int *fd);
|
295
|
+
BIO *BIO_new_socket (int sock, int close_flag);
|
296
|
+
|
297
|
+
/* error handling */
|
298
|
+
|
299
|
+
unsigned long ERR_get_error (void);
|
300
|
+
const char *ERR_error_string (unsigned long e, char *buf);
|
301
|
+
|
302
|
+
|
303
|
+
/* RAND functions */
|
304
|
+
|
305
|
+
int RAND_status (void);
|
306
|
+
void RAND_seed (const void *buf, int num);
|
307
|
+
int RAND_bytes (unsigned char *buf, int num);
|
308
|
+
int RAND_pseudo_bytes (unsigned char *buf, int num);
|
309
|
+
const char *RAND_file_name (char *buf, size_t len);
|
310
|
+
int RAND_load_file (const char *name, long maxbytes);
|
311
|
+
int RAND_write_file (const char *name);
|
312
|
+
|
313
|
+
int RAND_egd_bytes (const char *path, int bytes);
|
314
|
+
#define RAND_egd(p) RAND_egd_bytes((p), 255)
|
315
|
+
|
316
|
+
/* message digest functions */
|
317
|
+
|
318
|
+
#define MD5_DIGEST_LENGTH 16
|
319
|
+
|
320
|
+
void MD5_Init (MD5_CTX * ctx);
|
321
|
+
void MD5_Update (MD5_CTX * ctx, const void *buf, int len);
|
322
|
+
void MD5_Final (unsigned char *md, MD5_CTX * ctx);
|
323
|
+
unsigned char *MD5 (const unsigned char *buf, unsigned long len,
|
324
|
+
unsigned char *md);
|
325
|
+
|
326
|
+
void RIPEMD160_Init (RIPEMD160_CTX * ctx);
|
327
|
+
void RIPEMD160_Update (RIPEMD160_CTX * ctx, const void *buf, int len);
|
328
|
+
void RIPEMD160_Final (unsigned char *md, RIPEMD160_CTX * ctx);
|
329
|
+
unsigned char *RIPEMD160 (const unsigned char *buf, unsigned long len,
|
330
|
+
unsigned char *md);
|
331
|
+
|
332
|
+
#ifdef __cplusplus
|
333
|
+
}
|
334
|
+
#endif
|
335
|
+
#endif
|
@@ -0,0 +1,106 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (C) 2003, 2004, 2005, 2007 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
|
+
#ifndef GNUTLS_PKCS12_H
|
26
|
+
# define GNUTLS_PKCS12_H
|
27
|
+
|
28
|
+
#ifdef __cplusplus
|
29
|
+
extern "C"
|
30
|
+
{
|
31
|
+
#endif
|
32
|
+
|
33
|
+
#include <gnutls/x509.h>
|
34
|
+
|
35
|
+
/* PKCS12 structures handling
|
36
|
+
*/
|
37
|
+
struct gnutls_pkcs12_int;
|
38
|
+
typedef struct gnutls_pkcs12_int *gnutls_pkcs12_t;
|
39
|
+
|
40
|
+
struct gnutls_pkcs12_bag_int;
|
41
|
+
typedef struct gnutls_pkcs12_bag_int *gnutls_pkcs12_bag_t;
|
42
|
+
|
43
|
+
int gnutls_pkcs12_init (gnutls_pkcs12_t * pkcs12);
|
44
|
+
void gnutls_pkcs12_deinit (gnutls_pkcs12_t pkcs12);
|
45
|
+
int gnutls_pkcs12_import (gnutls_pkcs12_t pkcs12,
|
46
|
+
const gnutls_datum_t * data,
|
47
|
+
gnutls_x509_crt_fmt_t format,
|
48
|
+
unsigned int flags);
|
49
|
+
int gnutls_pkcs12_export (gnutls_pkcs12_t pkcs12,
|
50
|
+
gnutls_x509_crt_fmt_t format,
|
51
|
+
void *output_data,
|
52
|
+
size_t * output_data_size);
|
53
|
+
|
54
|
+
int gnutls_pkcs12_get_bag (gnutls_pkcs12_t pkcs12,
|
55
|
+
int indx, gnutls_pkcs12_bag_t bag);
|
56
|
+
int gnutls_pkcs12_set_bag (gnutls_pkcs12_t pkcs12, gnutls_pkcs12_bag_t bag);
|
57
|
+
|
58
|
+
int gnutls_pkcs12_generate_mac (gnutls_pkcs12_t pkcs12, const char *pass);
|
59
|
+
int gnutls_pkcs12_verify_mac (gnutls_pkcs12_t pkcs12, const char *pass);
|
60
|
+
|
61
|
+
int gnutls_pkcs12_bag_decrypt (gnutls_pkcs12_bag_t bag, const char *pass);
|
62
|
+
int gnutls_pkcs12_bag_encrypt (gnutls_pkcs12_bag_t bag, const char *pass,
|
63
|
+
unsigned int flags);
|
64
|
+
|
65
|
+
typedef enum gnutls_pkcs12_bag_type_t
|
66
|
+
{
|
67
|
+
GNUTLS_BAG_EMPTY = 0,
|
68
|
+
|
69
|
+
GNUTLS_BAG_PKCS8_ENCRYPTED_KEY = 1,
|
70
|
+
GNUTLS_BAG_PKCS8_KEY,
|
71
|
+
GNUTLS_BAG_CERTIFICATE,
|
72
|
+
GNUTLS_BAG_CRL,
|
73
|
+
GNUTLS_BAG_ENCRYPTED = 10,
|
74
|
+
GNUTLS_BAG_UNKNOWN = 20
|
75
|
+
} gnutls_pkcs12_bag_type_t;
|
76
|
+
|
77
|
+
gnutls_pkcs12_bag_type_t gnutls_pkcs12_bag_get_type (gnutls_pkcs12_bag_t
|
78
|
+
bag, int indx);
|
79
|
+
int gnutls_pkcs12_bag_get_data (gnutls_pkcs12_bag_t bag, int indx,
|
80
|
+
gnutls_datum_t * data);
|
81
|
+
int gnutls_pkcs12_bag_set_data (gnutls_pkcs12_bag_t bag,
|
82
|
+
gnutls_pkcs12_bag_type_t type,
|
83
|
+
const gnutls_datum_t * data);
|
84
|
+
int gnutls_pkcs12_bag_set_crl (gnutls_pkcs12_bag_t bag,
|
85
|
+
gnutls_x509_crl_t crl);
|
86
|
+
int gnutls_pkcs12_bag_set_crt (gnutls_pkcs12_bag_t bag,
|
87
|
+
gnutls_x509_crt_t crt);
|
88
|
+
|
89
|
+
int gnutls_pkcs12_bag_init (gnutls_pkcs12_bag_t * bag);
|
90
|
+
void gnutls_pkcs12_bag_deinit (gnutls_pkcs12_bag_t bag);
|
91
|
+
int gnutls_pkcs12_bag_get_count (gnutls_pkcs12_bag_t bag);
|
92
|
+
|
93
|
+
int gnutls_pkcs12_bag_get_key_id (gnutls_pkcs12_bag_t bag, int indx,
|
94
|
+
gnutls_datum_t * id);
|
95
|
+
int gnutls_pkcs12_bag_set_key_id (gnutls_pkcs12_bag_t bag, int indx,
|
96
|
+
const gnutls_datum_t * id);
|
97
|
+
|
98
|
+
int gnutls_pkcs12_bag_get_friendly_name (gnutls_pkcs12_bag_t bag, int indx,
|
99
|
+
char **name);
|
100
|
+
int gnutls_pkcs12_bag_set_friendly_name (gnutls_pkcs12_bag_t bag, int indx,
|
101
|
+
const char *name);
|
102
|
+
|
103
|
+
#ifdef __cplusplus
|
104
|
+
}
|
105
|
+
#endif
|
106
|
+
#endif /* GNUTLS_PKCS12_H */
|
@@ -0,0 +1,672 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (C) 2003, 2004, 2005, 2007 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
|
+
/* This file contains the types and prototypes for the X.509
|
26
|
+
* certificate and CRL handling functions.
|
27
|
+
*/
|
28
|
+
|
29
|
+
#ifndef GNUTLS_X509_H
|
30
|
+
# define GNUTLS_X509_H
|
31
|
+
|
32
|
+
#ifdef __cplusplus
|
33
|
+
extern "C"
|
34
|
+
{
|
35
|
+
#endif
|
36
|
+
|
37
|
+
#include <gnutls/gnutls.h>
|
38
|
+
|
39
|
+
/* Some OIDs usually found in Distinguished names, or
|
40
|
+
* in Subject Directory Attribute extensions.
|
41
|
+
*/
|
42
|
+
#define GNUTLS_OID_X520_COUNTRY_NAME "2.5.4.6"
|
43
|
+
#define GNUTLS_OID_X520_ORGANIZATION_NAME "2.5.4.10"
|
44
|
+
#define GNUTLS_OID_X520_ORGANIZATIONAL_UNIT_NAME "2.5.4.11"
|
45
|
+
#define GNUTLS_OID_X520_COMMON_NAME "2.5.4.3"
|
46
|
+
#define GNUTLS_OID_X520_LOCALITY_NAME "2.5.4.7"
|
47
|
+
#define GNUTLS_OID_X520_STATE_OR_PROVINCE_NAME "2.5.4.8"
|
48
|
+
|
49
|
+
#define GNUTLS_OID_X520_INITIALS "2.5.4.43"
|
50
|
+
#define GNUTLS_OID_X520_GENERATION_QUALIFIER "2.5.4.44"
|
51
|
+
#define GNUTLS_OID_X520_SURNAME "2.5.4.4"
|
52
|
+
#define GNUTLS_OID_X520_GIVEN_NAME "2.5.4.42"
|
53
|
+
#define GNUTLS_OID_X520_TITLE "2.5.4.12"
|
54
|
+
#define GNUTLS_OID_X520_DN_QUALIFIER "2.5.4.46"
|
55
|
+
#define GNUTLS_OID_X520_PSEUDONYM "2.5.4.65"
|
56
|
+
|
57
|
+
#define GNUTLS_OID_LDAP_DC "0.9.2342.19200300.100.1.25"
|
58
|
+
#define GNUTLS_OID_LDAP_UID "0.9.2342.19200300.100.1.1"
|
59
|
+
|
60
|
+
/* The following should not be included in DN.
|
61
|
+
*/
|
62
|
+
#define GNUTLS_OID_PKCS9_EMAIL "1.2.840.113549.1.9.1"
|
63
|
+
|
64
|
+
#define GNUTLS_OID_PKIX_DATE_OF_BIRTH "1.3.6.1.5.5.7.9.1"
|
65
|
+
#define GNUTLS_OID_PKIX_PLACE_OF_BIRTH "1.3.6.1.5.5.7.9.2"
|
66
|
+
#define GNUTLS_OID_PKIX_GENDER "1.3.6.1.5.5.7.9.3"
|
67
|
+
#define GNUTLS_OID_PKIX_COUNTRY_OF_CITIZENSHIP "1.3.6.1.5.5.7.9.4"
|
68
|
+
#define GNUTLS_OID_PKIX_COUNTRY_OF_RESIDENCE "1.3.6.1.5.5.7.9.5"
|
69
|
+
|
70
|
+
/* Key purpose Object Identifiers.
|
71
|
+
*/
|
72
|
+
#define GNUTLS_KP_TLS_WWW_SERVER "1.3.6.1.5.5.7.3.1"
|
73
|
+
#define GNUTLS_KP_TLS_WWW_CLIENT "1.3.6.1.5.5.7.3.2"
|
74
|
+
#define GNUTLS_KP_CODE_SIGNING "1.3.6.1.5.5.7.3.3"
|
75
|
+
#define GNUTLS_KP_EMAIL_PROTECTION "1.3.6.1.5.5.7.3.4"
|
76
|
+
#define GNUTLS_KP_TIME_STAMPING "1.3.6.1.5.5.7.3.8"
|
77
|
+
#define GNUTLS_KP_OCSP_SIGNING "1.3.6.1.5.5.7.3.9"
|
78
|
+
#define GNUTLS_KP_ANY "2.5.29.37.0"
|
79
|
+
|
80
|
+
/* Certificate handling functions.
|
81
|
+
*/
|
82
|
+
typedef enum gnutls_certificate_import_flags
|
83
|
+
{
|
84
|
+
/* Fail if the certificates in the buffer are more than the space
|
85
|
+
* allocated for certificates. The error code will be
|
86
|
+
* GNUTLS_E_SHORT_MEMORY_BUFFER.
|
87
|
+
*/
|
88
|
+
GNUTLS_X509_CRT_LIST_IMPORT_FAIL_IF_EXCEED = 1
|
89
|
+
} gnutls_certificate_import_flags;
|
90
|
+
|
91
|
+
int gnutls_x509_crt_init (gnutls_x509_crt_t * cert);
|
92
|
+
void gnutls_x509_crt_deinit (gnutls_x509_crt_t cert);
|
93
|
+
int gnutls_x509_crt_import (gnutls_x509_crt_t cert,
|
94
|
+
const gnutls_datum_t * data,
|
95
|
+
gnutls_x509_crt_fmt_t format);
|
96
|
+
int gnutls_x509_crt_list_import (gnutls_x509_crt_t * certs,
|
97
|
+
unsigned int *cert_max,
|
98
|
+
const gnutls_datum_t * data,
|
99
|
+
gnutls_x509_crt_fmt_t format,
|
100
|
+
unsigned int flags);
|
101
|
+
int gnutls_x509_crt_export (gnutls_x509_crt_t cert,
|
102
|
+
gnutls_x509_crt_fmt_t format,
|
103
|
+
void *output_data, size_t * output_data_size);
|
104
|
+
int gnutls_x509_crt_get_issuer_dn (gnutls_x509_crt_t cert, char *buf,
|
105
|
+
size_t * sizeof_buf);
|
106
|
+
int gnutls_x509_crt_get_issuer_dn_oid (gnutls_x509_crt_t cert, int indx,
|
107
|
+
void *oid, size_t * sizeof_oid);
|
108
|
+
int gnutls_x509_crt_get_issuer_dn_by_oid (gnutls_x509_crt_t cert,
|
109
|
+
const char *oid, int indx,
|
110
|
+
unsigned int raw_flag,
|
111
|
+
void *buf, size_t * sizeof_buf);
|
112
|
+
int gnutls_x509_crt_get_dn (gnutls_x509_crt_t cert, char *buf,
|
113
|
+
size_t * sizeof_buf);
|
114
|
+
int gnutls_x509_crt_get_dn_oid (gnutls_x509_crt_t cert, int indx,
|
115
|
+
void *oid, size_t * sizeof_oid);
|
116
|
+
int gnutls_x509_crt_get_dn_by_oid (gnutls_x509_crt_t cert,
|
117
|
+
const char *oid, int indx,
|
118
|
+
unsigned int raw_flag, void *buf,
|
119
|
+
size_t * sizeof_buf);
|
120
|
+
int gnutls_x509_crt_check_hostname (gnutls_x509_crt_t cert,
|
121
|
+
const char *hostname);
|
122
|
+
|
123
|
+
int gnutls_x509_crt_get_signature_algorithm (gnutls_x509_crt_t cert);
|
124
|
+
int gnutls_x509_crt_get_signature (gnutls_x509_crt_t cert,
|
125
|
+
char *sig, size_t *sizeof_sig);
|
126
|
+
int gnutls_x509_crt_get_version (gnutls_x509_crt_t cert);
|
127
|
+
int gnutls_x509_crt_get_key_id (gnutls_x509_crt_t crt,
|
128
|
+
unsigned int flags,
|
129
|
+
unsigned char *output_data,
|
130
|
+
size_t * output_data_size);
|
131
|
+
|
132
|
+
int gnutls_x509_crt_set_authority_key_id (gnutls_x509_crt_t cert,
|
133
|
+
const void *id, size_t id_size);
|
134
|
+
int gnutls_x509_crt_get_authority_key_id (gnutls_x509_crt_t cert,
|
135
|
+
void *ret, size_t * ret_size,
|
136
|
+
unsigned int *critical);
|
137
|
+
|
138
|
+
int gnutls_x509_crt_get_subject_key_id (gnutls_x509_crt_t cert,
|
139
|
+
void *ret, size_t * ret_size,
|
140
|
+
unsigned int *critical);
|
141
|
+
|
142
|
+
#define GNUTLS_CRL_REASON_UNUSED 128
|
143
|
+
#define GNUTLS_CRL_REASON_KEY_COMPROMISE 64
|
144
|
+
#define GNUTLS_CRL_REASON_CA_COMPROMISE 32
|
145
|
+
#define GNUTLS_CRL_REASON_AFFILIATION_CHANGED 16
|
146
|
+
#define GNUTLS_CRL_REASON_SUPERSEEDED 8
|
147
|
+
#define GNUTLS_CRL_REASON_CESSATION_OF_OPERATION 4
|
148
|
+
#define GNUTLS_CRL_REASON_CERTIFICATE_HOLD 2
|
149
|
+
#define GNUTLS_CRL_REASON_PRIVILEGE_WITHDRAWN 1
|
150
|
+
#define GNUTLS_CRL_REASON_AA_COMPROMISE 32768
|
151
|
+
|
152
|
+
int gnutls_x509_crt_get_crl_dist_points (gnutls_x509_crt_t cert,
|
153
|
+
unsigned int seq, void *ret,
|
154
|
+
size_t * ret_size,
|
155
|
+
unsigned int *reason_flags,
|
156
|
+
unsigned int *critical);
|
157
|
+
int gnutls_x509_crt_set_crl_dist_points (gnutls_x509_crt_t crt,
|
158
|
+
gnutls_x509_subject_alt_name_t
|
159
|
+
type, const void *data_string,
|
160
|
+
unsigned int reason_flags);
|
161
|
+
int gnutls_x509_crt_cpy_crl_dist_points (gnutls_x509_crt_t dst,
|
162
|
+
gnutls_x509_crt_t src);
|
163
|
+
|
164
|
+
time_t gnutls_x509_crt_get_activation_time (gnutls_x509_crt_t cert);
|
165
|
+
time_t gnutls_x509_crt_get_expiration_time (gnutls_x509_crt_t cert);
|
166
|
+
int gnutls_x509_crt_get_serial (gnutls_x509_crt_t cert, void *result,
|
167
|
+
size_t * result_size);
|
168
|
+
|
169
|
+
int gnutls_x509_crt_get_pk_algorithm (gnutls_x509_crt_t cert,
|
170
|
+
unsigned int *bits);
|
171
|
+
int gnutls_x509_crt_get_pk_rsa_raw (gnutls_x509_crt_t crt,
|
172
|
+
gnutls_datum_t * m, gnutls_datum_t * e);
|
173
|
+
int gnutls_x509_crt_get_pk_dsa_raw (gnutls_x509_crt_t crt,
|
174
|
+
gnutls_datum_t * p,
|
175
|
+
gnutls_datum_t * q,
|
176
|
+
gnutls_datum_t * g, gnutls_datum_t * y);
|
177
|
+
|
178
|
+
int gnutls_x509_crt_get_subject_alt_name (gnutls_x509_crt_t cert,
|
179
|
+
unsigned int seq, void *ret,
|
180
|
+
size_t * ret_size,
|
181
|
+
unsigned int *critical);
|
182
|
+
int gnutls_x509_crt_get_subject_alt_name2 (gnutls_x509_crt_t cert,
|
183
|
+
unsigned int seq, void *ret, size_t * ret_size,
|
184
|
+
unsigned int* ret_type, unsigned int *critical);
|
185
|
+
|
186
|
+
int gnutls_x509_crt_get_subject_alt_othername_oid (gnutls_x509_crt_t cert,
|
187
|
+
unsigned int seq,
|
188
|
+
void *ret,
|
189
|
+
size_t * ret_size);
|
190
|
+
|
191
|
+
int gnutls_x509_crt_get_ca_status (gnutls_x509_crt_t cert,
|
192
|
+
unsigned int *critical);
|
193
|
+
int gnutls_x509_crt_get_basic_constraints (gnutls_x509_crt_t cert,
|
194
|
+
unsigned int *critical,
|
195
|
+
int *ca,
|
196
|
+
int *pathlen);
|
197
|
+
|
198
|
+
/* The key_usage flags are defined in gnutls.h. They are the
|
199
|
+
* GNUTLS_KEY_* definitions.
|
200
|
+
*/
|
201
|
+
int gnutls_x509_crt_get_key_usage (gnutls_x509_crt_t cert,
|
202
|
+
unsigned int *key_usage,
|
203
|
+
unsigned int *critical);
|
204
|
+
int gnutls_x509_crt_set_key_usage (gnutls_x509_crt_t crt,
|
205
|
+
unsigned int usage);
|
206
|
+
|
207
|
+
int gnutls_x509_crt_get_proxy (gnutls_x509_crt_t cert,
|
208
|
+
unsigned int *critical,
|
209
|
+
int *pathlen,
|
210
|
+
char **policyLanguage,
|
211
|
+
char **policy,
|
212
|
+
size_t *sizeof_policy);
|
213
|
+
|
214
|
+
int gnutls_x509_dn_oid_known (const char *oid);
|
215
|
+
|
216
|
+
/* Read extensions by OID. */
|
217
|
+
int gnutls_x509_crt_get_extension_oid (gnutls_x509_crt_t cert, int indx,
|
218
|
+
void *oid, size_t * sizeof_oid);
|
219
|
+
int gnutls_x509_crt_get_extension_by_oid (gnutls_x509_crt_t cert,
|
220
|
+
const char *oid, int indx,
|
221
|
+
void *buf,
|
222
|
+
size_t * sizeof_buf,
|
223
|
+
unsigned int *critical);
|
224
|
+
|
225
|
+
/* Read extensions by sequence number. */
|
226
|
+
int gnutls_x509_crt_get_extension_info (gnutls_x509_crt_t cert, int indx,
|
227
|
+
void *oid, size_t * sizeof_oid,
|
228
|
+
int *critical);
|
229
|
+
int gnutls_x509_crt_get_extension_data (gnutls_x509_crt_t cert, int indx,
|
230
|
+
void *data, size_t * sizeof_data);
|
231
|
+
|
232
|
+
int gnutls_x509_crt_set_extension_by_oid (gnutls_x509_crt_t crt,
|
233
|
+
const char *oid,
|
234
|
+
const void *buf,
|
235
|
+
size_t sizeof_buf,
|
236
|
+
unsigned int critical);
|
237
|
+
|
238
|
+
/* X.509 Certificate writing.
|
239
|
+
*/
|
240
|
+
int gnutls_x509_crt_set_dn_by_oid (gnutls_x509_crt_t crt,
|
241
|
+
const char *oid,
|
242
|
+
unsigned int raw_flag,
|
243
|
+
const void *name,
|
244
|
+
unsigned int sizeof_name);
|
245
|
+
int gnutls_x509_crt_set_issuer_dn_by_oid (gnutls_x509_crt_t crt,
|
246
|
+
const char *oid,
|
247
|
+
unsigned int raw_flag,
|
248
|
+
const void *name,
|
249
|
+
unsigned int sizeof_name);
|
250
|
+
int gnutls_x509_crt_set_version (gnutls_x509_crt_t crt,
|
251
|
+
unsigned int version);
|
252
|
+
int gnutls_x509_crt_set_key (gnutls_x509_crt_t crt,
|
253
|
+
gnutls_x509_privkey_t key);
|
254
|
+
int gnutls_x509_crt_set_ca_status (gnutls_x509_crt_t crt, unsigned int ca);
|
255
|
+
int gnutls_x509_crt_set_basic_constraints (gnutls_x509_crt_t crt,
|
256
|
+
unsigned int ca,
|
257
|
+
int pathLenConstraint);
|
258
|
+
int gnutls_x509_crt_set_subject_alternative_name (gnutls_x509_crt_t crt,
|
259
|
+
gnutls_x509_subject_alt_name_t
|
260
|
+
type,
|
261
|
+
const char *data_string);
|
262
|
+
int gnutls_x509_crt_sign (gnutls_x509_crt_t crt,
|
263
|
+
gnutls_x509_crt_t issuer,
|
264
|
+
gnutls_x509_privkey_t issuer_key);
|
265
|
+
int gnutls_x509_crt_sign2 (gnutls_x509_crt_t crt,
|
266
|
+
gnutls_x509_crt_t issuer,
|
267
|
+
gnutls_x509_privkey_t issuer_key,
|
268
|
+
gnutls_digest_algorithm_t, unsigned int flags);
|
269
|
+
int gnutls_x509_crt_set_activation_time (gnutls_x509_crt_t cert,
|
270
|
+
time_t act_time);
|
271
|
+
int gnutls_x509_crt_set_expiration_time (gnutls_x509_crt_t cert,
|
272
|
+
time_t exp_time);
|
273
|
+
int gnutls_x509_crt_set_serial (gnutls_x509_crt_t cert,
|
274
|
+
const void *serial, size_t serial_size);
|
275
|
+
|
276
|
+
int gnutls_x509_crt_set_subject_key_id (gnutls_x509_crt_t cert,
|
277
|
+
const void *id, size_t id_size);
|
278
|
+
|
279
|
+
int gnutls_x509_crt_set_proxy_dn (gnutls_x509_crt_t crt,
|
280
|
+
gnutls_x509_crt_t eecrt,
|
281
|
+
unsigned int raw_flag,
|
282
|
+
const void *name,
|
283
|
+
unsigned int sizeof_name);
|
284
|
+
int gnutls_x509_crt_set_proxy (gnutls_x509_crt_t crt,
|
285
|
+
int pathLenConstraint,
|
286
|
+
const char *policyLanguage,
|
287
|
+
const char *policy,
|
288
|
+
size_t sizeof_policy);
|
289
|
+
|
290
|
+
int gnutls_x509_crt_print (gnutls_x509_crt_t cert,
|
291
|
+
gnutls_certificate_print_formats_t format,
|
292
|
+
gnutls_datum_t *out);
|
293
|
+
int gnutls_x509_crl_print (gnutls_x509_crl_t crl,
|
294
|
+
gnutls_certificate_print_formats_t format,
|
295
|
+
gnutls_datum_t *out);
|
296
|
+
|
297
|
+
/* Access to internal Certificate fields.
|
298
|
+
*/
|
299
|
+
int gnutls_x509_crt_get_raw_issuer_dn (gnutls_x509_crt_t cert,
|
300
|
+
gnutls_datum_t * start);
|
301
|
+
int gnutls_x509_crt_get_raw_dn (gnutls_x509_crt_t cert,
|
302
|
+
gnutls_datum_t * start);
|
303
|
+
|
304
|
+
/* RDN handling.
|
305
|
+
*/
|
306
|
+
int gnutls_x509_rdn_get (const gnutls_datum_t * idn,
|
307
|
+
char *buf, size_t * sizeof_buf);
|
308
|
+
int gnutls_x509_rdn_get_oid (const gnutls_datum_t * idn,
|
309
|
+
int indx, void *buf, size_t * sizeof_buf);
|
310
|
+
|
311
|
+
int gnutls_x509_rdn_get_by_oid (const gnutls_datum_t * idn,
|
312
|
+
const char *oid, int indx,
|
313
|
+
unsigned int raw_flag, void *buf,
|
314
|
+
size_t * sizeof_buf);
|
315
|
+
|
316
|
+
typedef void *gnutls_x509_dn_t;
|
317
|
+
|
318
|
+
typedef struct gnutls_x509_ava_st {
|
319
|
+
gnutls_datum_t oid;
|
320
|
+
gnutls_datum_t value;
|
321
|
+
unsigned long value_tag;
|
322
|
+
} gnutls_x509_ava_st;
|
323
|
+
|
324
|
+
int gnutls_x509_crt_get_subject (gnutls_x509_crt_t cert,
|
325
|
+
gnutls_x509_dn_t *dn);
|
326
|
+
int gnutls_x509_crt_get_issuer (gnutls_x509_crt_t cert,
|
327
|
+
gnutls_x509_dn_t *dn);
|
328
|
+
int gnutls_x509_dn_get_rdn_ava (gnutls_x509_dn_t dn, int irdn,
|
329
|
+
int iava, gnutls_x509_ava_st *avast);
|
330
|
+
|
331
|
+
int gnutls_x509_dn_init (gnutls_x509_dn_t * dn);
|
332
|
+
|
333
|
+
int gnutls_x509_dn_import (gnutls_x509_dn_t odn,
|
334
|
+
const gnutls_datum_t * data);
|
335
|
+
|
336
|
+
int gnutls_x509_dn_export (gnutls_x509_dn_t dn,
|
337
|
+
gnutls_x509_crt_fmt_t format, void *output_data,
|
338
|
+
size_t * output_data_size);
|
339
|
+
|
340
|
+
void gnutls_x509_dn_deinit (gnutls_x509_dn_t idn);
|
341
|
+
|
342
|
+
|
343
|
+
/* CRL handling functions.
|
344
|
+
*/
|
345
|
+
int gnutls_x509_crl_init (gnutls_x509_crl_t * crl);
|
346
|
+
void gnutls_x509_crl_deinit (gnutls_x509_crl_t crl);
|
347
|
+
|
348
|
+
int gnutls_x509_crl_import (gnutls_x509_crl_t crl,
|
349
|
+
const gnutls_datum_t * data,
|
350
|
+
gnutls_x509_crt_fmt_t format);
|
351
|
+
int gnutls_x509_crl_export (gnutls_x509_crl_t crl,
|
352
|
+
gnutls_x509_crt_fmt_t format,
|
353
|
+
void *output_data, size_t * output_data_size);
|
354
|
+
|
355
|
+
int gnutls_x509_crl_get_issuer_dn (const gnutls_x509_crl_t crl,
|
356
|
+
char *buf, size_t * sizeof_buf);
|
357
|
+
int gnutls_x509_crl_get_issuer_dn_by_oid (gnutls_x509_crl_t crl,
|
358
|
+
const char *oid, int indx,
|
359
|
+
unsigned int raw_flag,
|
360
|
+
void *buf, size_t * sizeof_buf);
|
361
|
+
int gnutls_x509_crl_get_dn_oid (gnutls_x509_crl_t crl, int indx,
|
362
|
+
void *oid, size_t * sizeof_oid);
|
363
|
+
|
364
|
+
int gnutls_x509_crl_get_signature_algorithm (gnutls_x509_crl_t crl);
|
365
|
+
int gnutls_x509_crl_get_signature (gnutls_x509_crl_t crl,
|
366
|
+
char *sig, size_t *sizeof_sig);
|
367
|
+
int gnutls_x509_crl_get_version (gnutls_x509_crl_t crl);
|
368
|
+
|
369
|
+
time_t gnutls_x509_crl_get_this_update (gnutls_x509_crl_t crl);
|
370
|
+
time_t gnutls_x509_crl_get_next_update (gnutls_x509_crl_t crl);
|
371
|
+
|
372
|
+
int gnutls_x509_crl_get_crt_count (gnutls_x509_crl_t crl);
|
373
|
+
int gnutls_x509_crl_get_crt_serial (gnutls_x509_crl_t crl, int indx,
|
374
|
+
unsigned char *serial,
|
375
|
+
size_t * serial_size, time_t * t);
|
376
|
+
#define gnutls_x509_crl_get_certificate_count gnutls_x509_crl_get_crt_count
|
377
|
+
#define gnutls_x509_crl_get_certificate gnutls_x509_crl_get_crt_serial
|
378
|
+
|
379
|
+
int gnutls_x509_crl_check_issuer (gnutls_x509_crl_t crl,
|
380
|
+
gnutls_x509_crt_t issuer);
|
381
|
+
|
382
|
+
/* CRL writing.
|
383
|
+
*/
|
384
|
+
int gnutls_x509_crl_set_version (gnutls_x509_crl_t crl,
|
385
|
+
unsigned int version);
|
386
|
+
int gnutls_x509_crl_sign (gnutls_x509_crl_t crl,
|
387
|
+
gnutls_x509_crt_t issuer,
|
388
|
+
gnutls_x509_privkey_t issuer_key);
|
389
|
+
int gnutls_x509_crl_sign2 (gnutls_x509_crl_t crl,
|
390
|
+
gnutls_x509_crt_t issuer,
|
391
|
+
gnutls_x509_privkey_t issuer_key,
|
392
|
+
gnutls_digest_algorithm_t, unsigned int flags);
|
393
|
+
int gnutls_x509_crl_set_this_update (gnutls_x509_crl_t crl,
|
394
|
+
time_t act_time);
|
395
|
+
int gnutls_x509_crl_set_next_update (gnutls_x509_crl_t crl,
|
396
|
+
time_t exp_time);
|
397
|
+
int gnutls_x509_crl_set_crt_serial (gnutls_x509_crl_t crl,
|
398
|
+
const void *serial,
|
399
|
+
size_t serial_size,
|
400
|
+
time_t revocation_time);
|
401
|
+
int gnutls_x509_crl_set_crt (gnutls_x509_crl_t crl,
|
402
|
+
gnutls_x509_crt_t crt, time_t revocation_time);
|
403
|
+
|
404
|
+
|
405
|
+
/* PKCS7 structures handling
|
406
|
+
*/
|
407
|
+
struct gnutls_pkcs7_int;
|
408
|
+
typedef struct gnutls_pkcs7_int *gnutls_pkcs7_t;
|
409
|
+
|
410
|
+
int gnutls_pkcs7_init (gnutls_pkcs7_t * pkcs7);
|
411
|
+
void gnutls_pkcs7_deinit (gnutls_pkcs7_t pkcs7);
|
412
|
+
int gnutls_pkcs7_import (gnutls_pkcs7_t pkcs7,
|
413
|
+
const gnutls_datum_t * data,
|
414
|
+
gnutls_x509_crt_fmt_t format);
|
415
|
+
int gnutls_pkcs7_export (gnutls_pkcs7_t pkcs7,
|
416
|
+
gnutls_x509_crt_fmt_t format,
|
417
|
+
void *output_data, size_t * output_data_size);
|
418
|
+
|
419
|
+
int gnutls_pkcs7_get_crt_count (gnutls_pkcs7_t pkcs7);
|
420
|
+
int gnutls_pkcs7_get_crt_raw (gnutls_pkcs7_t pkcs7, int indx,
|
421
|
+
void *certificate, size_t * certificate_size);
|
422
|
+
|
423
|
+
int gnutls_pkcs7_set_crt_raw (gnutls_pkcs7_t pkcs7,
|
424
|
+
const gnutls_datum_t * crt);
|
425
|
+
int gnutls_pkcs7_set_crt (gnutls_pkcs7_t pkcs7, gnutls_x509_crt_t crt);
|
426
|
+
int gnutls_pkcs7_delete_crt (gnutls_pkcs7_t pkcs7, int indx);
|
427
|
+
|
428
|
+
int gnutls_pkcs7_get_crl_raw (gnutls_pkcs7_t pkcs7,
|
429
|
+
int indx, void *crl, size_t * crl_size);
|
430
|
+
int gnutls_pkcs7_get_crl_count (gnutls_pkcs7_t pkcs7);
|
431
|
+
|
432
|
+
int gnutls_pkcs7_set_crl_raw (gnutls_pkcs7_t pkcs7,
|
433
|
+
const gnutls_datum_t * crt);
|
434
|
+
int gnutls_pkcs7_set_crl (gnutls_pkcs7_t pkcs7, gnutls_x509_crl_t crl);
|
435
|
+
int gnutls_pkcs7_delete_crl (gnutls_pkcs7_t pkcs7, int indx);
|
436
|
+
|
437
|
+
/* X.509 Certificate verification functions.
|
438
|
+
*/
|
439
|
+
typedef enum gnutls_certificate_verify_flags
|
440
|
+
{
|
441
|
+
/* If set a signer does not have to be a certificate authority. This
|
442
|
+
* flag should normaly be disabled, unless you know what this means.
|
443
|
+
*/
|
444
|
+
GNUTLS_VERIFY_DISABLE_CA_SIGN = 1,
|
445
|
+
|
446
|
+
/* Allow only trusted CA certificates that have version 1. This is
|
447
|
+
* safer than GNUTLS_VERIFY_ALLOW_ANY_X509_V1_CA_CRT, and should be
|
448
|
+
* used instead. That way only signers in your trusted list will be
|
449
|
+
* allowed to have certificates of version 1.
|
450
|
+
*/
|
451
|
+
GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT = 2,
|
452
|
+
|
453
|
+
/* If a certificate is not signed by anyone trusted but exists in
|
454
|
+
* the trusted CA list do not treat it as trusted.
|
455
|
+
*/
|
456
|
+
GNUTLS_VERIFY_DO_NOT_ALLOW_SAME = 4,
|
457
|
+
|
458
|
+
/* Allow CA certificates that have version 1 (both root and
|
459
|
+
* intermediate). This might be dangerous since those haven't the
|
460
|
+
* basicConstraints extension. Must be used in combination with
|
461
|
+
* GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT.
|
462
|
+
*/
|
463
|
+
GNUTLS_VERIFY_ALLOW_ANY_X509_V1_CA_CRT = 8,
|
464
|
+
|
465
|
+
/* Allow certificates to be signed using the broken MD2 algorithm.
|
466
|
+
*/
|
467
|
+
GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD2 = 16,
|
468
|
+
|
469
|
+
/* Allow certificates to be signed using the broken MD5 algorithm.
|
470
|
+
*/
|
471
|
+
GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD5 = 32
|
472
|
+
} gnutls_certificate_verify_flags;
|
473
|
+
|
474
|
+
int gnutls_x509_crt_check_issuer (gnutls_x509_crt_t cert,
|
475
|
+
gnutls_x509_crt_t issuer);
|
476
|
+
|
477
|
+
int gnutls_x509_crt_list_verify (const gnutls_x509_crt_t * cert_list,
|
478
|
+
int cert_list_length,
|
479
|
+
const gnutls_x509_crt_t * CA_list,
|
480
|
+
int CA_list_length,
|
481
|
+
const gnutls_x509_crl_t * CRL_list,
|
482
|
+
int CRL_list_length,
|
483
|
+
unsigned int flags, unsigned int *verify);
|
484
|
+
|
485
|
+
int gnutls_x509_crt_verify (gnutls_x509_crt_t cert,
|
486
|
+
const gnutls_x509_crt_t * CA_list,
|
487
|
+
int CA_list_length, unsigned int flags,
|
488
|
+
unsigned int *verify);
|
489
|
+
int gnutls_x509_crl_verify (gnutls_x509_crl_t crl,
|
490
|
+
const gnutls_x509_crt_t * CA_list,
|
491
|
+
int CA_list_length, unsigned int flags,
|
492
|
+
unsigned int *verify);
|
493
|
+
|
494
|
+
int gnutls_x509_crt_check_revocation (gnutls_x509_crt_t cert,
|
495
|
+
const gnutls_x509_crl_t *
|
496
|
+
crl_list, int crl_list_length);
|
497
|
+
|
498
|
+
int gnutls_x509_crt_get_fingerprint (gnutls_x509_crt_t cert,
|
499
|
+
gnutls_digest_algorithm_t algo,
|
500
|
+
void *buf, size_t * sizeof_buf);
|
501
|
+
|
502
|
+
int gnutls_x509_crt_get_key_purpose_oid (gnutls_x509_crt_t cert,
|
503
|
+
int indx, void *oid,
|
504
|
+
size_t * sizeof_oid,
|
505
|
+
unsigned int *critical);
|
506
|
+
int gnutls_x509_crt_set_key_purpose_oid (gnutls_x509_crt_t cert,
|
507
|
+
const void *oid,
|
508
|
+
unsigned int critical);
|
509
|
+
|
510
|
+
/* Private key handling.
|
511
|
+
*/
|
512
|
+
|
513
|
+
/* Flags for the gnutls_x509_privkey_export_pkcs8() function.
|
514
|
+
*/
|
515
|
+
typedef enum gnutls_pkcs_encrypt_flags_t
|
516
|
+
{
|
517
|
+
GNUTLS_PKCS_PLAIN = 1, /* if set the private key will not
|
518
|
+
* be encrypted.
|
519
|
+
*/
|
520
|
+
GNUTLS_PKCS_USE_PKCS12_3DES = 2,
|
521
|
+
GNUTLS_PKCS_USE_PKCS12_ARCFOUR = 4,
|
522
|
+
GNUTLS_PKCS_USE_PKCS12_RC2_40 = 8,
|
523
|
+
GNUTLS_PKCS_USE_PBES2_3DES = 16
|
524
|
+
} gnutls_pkcs_encrypt_flags_t;
|
525
|
+
|
526
|
+
#define GNUTLS_PKCS8_PLAIN GNUTLS_PKCS_PLAIN
|
527
|
+
#define GNUTLS_PKCS8_USE_PKCS12_3DES GNUTLS_PKCS_USE_PKCS12_3DES
|
528
|
+
#define GNUTLS_PKCS8_USE_PKCS12_ARCFOUR GNUTLS_PKCS_USE_PKCS12_ARCFOUR
|
529
|
+
#define GNUTLS_PKCS8_USE_PKCS12_RC2_40 GNUTLS_PKCS_USE_PKCS12_RC2_40
|
530
|
+
|
531
|
+
int gnutls_x509_privkey_init (gnutls_x509_privkey_t * key);
|
532
|
+
void gnutls_x509_privkey_deinit (gnutls_x509_privkey_t key);
|
533
|
+
int gnutls_x509_privkey_cpy (gnutls_x509_privkey_t dst,
|
534
|
+
gnutls_x509_privkey_t src);
|
535
|
+
int gnutls_x509_privkey_import (gnutls_x509_privkey_t key,
|
536
|
+
const gnutls_datum_t * data,
|
537
|
+
gnutls_x509_crt_fmt_t format);
|
538
|
+
int gnutls_x509_privkey_import_pkcs8 (gnutls_x509_privkey_t key,
|
539
|
+
const gnutls_datum_t * data,
|
540
|
+
gnutls_x509_crt_fmt_t format,
|
541
|
+
const char *pass, unsigned int flags);
|
542
|
+
int gnutls_x509_privkey_import_rsa_raw (gnutls_x509_privkey_t key,
|
543
|
+
const gnutls_datum_t * m,
|
544
|
+
const gnutls_datum_t * e,
|
545
|
+
const gnutls_datum_t * d,
|
546
|
+
const gnutls_datum_t * p,
|
547
|
+
const gnutls_datum_t * q,
|
548
|
+
const gnutls_datum_t * u);
|
549
|
+
int gnutls_x509_privkey_fix (gnutls_x509_privkey_t key);
|
550
|
+
|
551
|
+
int gnutls_x509_privkey_export_dsa_raw (gnutls_x509_privkey_t key,
|
552
|
+
gnutls_datum_t * p,
|
553
|
+
gnutls_datum_t * q,
|
554
|
+
gnutls_datum_t * g,
|
555
|
+
gnutls_datum_t * y,
|
556
|
+
gnutls_datum_t * x);
|
557
|
+
int gnutls_x509_privkey_import_dsa_raw (gnutls_x509_privkey_t key,
|
558
|
+
const gnutls_datum_t * p,
|
559
|
+
const gnutls_datum_t * q,
|
560
|
+
const gnutls_datum_t * g,
|
561
|
+
const gnutls_datum_t * y,
|
562
|
+
const gnutls_datum_t * x);
|
563
|
+
|
564
|
+
int gnutls_x509_privkey_get_pk_algorithm (gnutls_x509_privkey_t key);
|
565
|
+
int gnutls_x509_privkey_get_key_id (gnutls_x509_privkey_t key,
|
566
|
+
unsigned int flags,
|
567
|
+
unsigned char *output_data,
|
568
|
+
size_t * output_data_size);
|
569
|
+
|
570
|
+
int gnutls_x509_privkey_generate (gnutls_x509_privkey_t key,
|
571
|
+
gnutls_pk_algorithm_t algo,
|
572
|
+
unsigned int bits, unsigned int flags);
|
573
|
+
|
574
|
+
int gnutls_x509_privkey_export (gnutls_x509_privkey_t key,
|
575
|
+
gnutls_x509_crt_fmt_t format,
|
576
|
+
void *output_data,
|
577
|
+
size_t * output_data_size);
|
578
|
+
int gnutls_x509_privkey_export_pkcs8 (gnutls_x509_privkey_t key,
|
579
|
+
gnutls_x509_crt_fmt_t format,
|
580
|
+
const char *password,
|
581
|
+
unsigned int flags,
|
582
|
+
void *output_data,
|
583
|
+
size_t * output_data_size);
|
584
|
+
int gnutls_x509_privkey_export_rsa_raw (gnutls_x509_privkey_t key,
|
585
|
+
gnutls_datum_t * m,
|
586
|
+
gnutls_datum_t * e,
|
587
|
+
gnutls_datum_t * d,
|
588
|
+
gnutls_datum_t * p,
|
589
|
+
gnutls_datum_t * q,
|
590
|
+
gnutls_datum_t * u);
|
591
|
+
|
592
|
+
/* Signing stuff.
|
593
|
+
*/
|
594
|
+
int gnutls_x509_privkey_sign_data (gnutls_x509_privkey_t key,
|
595
|
+
gnutls_digest_algorithm_t digest,
|
596
|
+
unsigned int flags,
|
597
|
+
const gnutls_datum_t * data,
|
598
|
+
void *signature,
|
599
|
+
size_t * signature_size);
|
600
|
+
int gnutls_x509_privkey_verify_data (gnutls_x509_privkey_t key,
|
601
|
+
unsigned int flags,
|
602
|
+
const gnutls_datum_t * data,
|
603
|
+
const gnutls_datum_t * signature);
|
604
|
+
int gnutls_x509_crt_verify_data (gnutls_x509_crt_t crt,
|
605
|
+
unsigned int flags,
|
606
|
+
const gnutls_datum_t * data,
|
607
|
+
const gnutls_datum_t * signature);
|
608
|
+
|
609
|
+
int gnutls_x509_privkey_sign_hash (gnutls_x509_privkey_t key,
|
610
|
+
const gnutls_datum_t * hash,
|
611
|
+
gnutls_datum_t * signature);
|
612
|
+
|
613
|
+
|
614
|
+
/* Certificate request stuff.
|
615
|
+
*/
|
616
|
+
struct gnutls_x509_crq_int;
|
617
|
+
typedef struct gnutls_x509_crq_int *gnutls_x509_crq_t;
|
618
|
+
|
619
|
+
int gnutls_x509_crq_init (gnutls_x509_crq_t * crq);
|
620
|
+
void gnutls_x509_crq_deinit (gnutls_x509_crq_t crq);
|
621
|
+
int gnutls_x509_crq_import (gnutls_x509_crq_t crq,
|
622
|
+
const gnutls_datum_t * data,
|
623
|
+
gnutls_x509_crt_fmt_t format);
|
624
|
+
int gnutls_x509_crq_get_pk_algorithm (gnutls_x509_crq_t crq,
|
625
|
+
unsigned int *bits);
|
626
|
+
int gnutls_x509_crq_get_dn (gnutls_x509_crq_t crq, char *buf,
|
627
|
+
size_t * sizeof_buf);
|
628
|
+
int gnutls_x509_crq_get_dn_oid (gnutls_x509_crq_t crq, int indx,
|
629
|
+
void *oid, size_t * sizeof_oid);
|
630
|
+
int gnutls_x509_crq_get_dn_by_oid (gnutls_x509_crq_t crq,
|
631
|
+
const char *oid, int indx,
|
632
|
+
unsigned int raw_flag, void *buf,
|
633
|
+
size_t * sizeof_buf);
|
634
|
+
int gnutls_x509_crq_set_dn_by_oid (gnutls_x509_crq_t crq,
|
635
|
+
const char *oid,
|
636
|
+
unsigned int raw_flag,
|
637
|
+
const void *name,
|
638
|
+
unsigned int sizeof_name);
|
639
|
+
int gnutls_x509_crq_set_version (gnutls_x509_crq_t crq,
|
640
|
+
unsigned int version);
|
641
|
+
int gnutls_x509_crq_set_key (gnutls_x509_crq_t crq,
|
642
|
+
gnutls_x509_privkey_t key);
|
643
|
+
int gnutls_x509_crq_sign2 (gnutls_x509_crq_t crq,
|
644
|
+
gnutls_x509_privkey_t key,
|
645
|
+
gnutls_digest_algorithm_t, unsigned int flags);
|
646
|
+
int gnutls_x509_crq_sign (gnutls_x509_crq_t crq, gnutls_x509_privkey_t key);
|
647
|
+
|
648
|
+
int gnutls_x509_crq_set_challenge_password (gnutls_x509_crq_t crq,
|
649
|
+
const char *pass);
|
650
|
+
int gnutls_x509_crq_get_challenge_password (gnutls_x509_crq_t crq,
|
651
|
+
char *pass,
|
652
|
+
size_t * sizeof_pass);
|
653
|
+
|
654
|
+
int gnutls_x509_crq_set_attribute_by_oid (gnutls_x509_crq_t crq,
|
655
|
+
const char *oid, void *buf,
|
656
|
+
size_t sizeof_buf);
|
657
|
+
int gnutls_x509_crq_get_attribute_by_oid (gnutls_x509_crq_t crq,
|
658
|
+
const char *oid, int indx,
|
659
|
+
void *buf, size_t * sizeof_buf);
|
660
|
+
|
661
|
+
int gnutls_x509_crq_export (gnutls_x509_crq_t crq,
|
662
|
+
gnutls_x509_crt_fmt_t format,
|
663
|
+
void *output_data, size_t * output_data_size);
|
664
|
+
|
665
|
+
int gnutls_x509_crt_set_crq (gnutls_x509_crt_t crt, gnutls_x509_crq_t crq);
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
#ifdef __cplusplus
|
670
|
+
}
|
671
|
+
#endif
|
672
|
+
#endif /* GNUTLS_X509_H */
|