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