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