rho-tau-extensions 5.5.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (661) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +2 -0
  3. data/LICENSE +21 -0
  4. data/README.md +6 -0
  5. data/Rakefile +90 -0
  6. data/libs/crosswalk.rb +2 -0
  7. data/libs/crosswalk/crosswalk.rb +2 -0
  8. data/libs/crosswalk/ext.yml +21 -0
  9. data/libs/crosswalk/ext/Crosswalk.xml +27 -0
  10. data/libs/crosswalk/ext/build +19 -0
  11. data/libs/crosswalk/ext/build.bat +29 -0
  12. data/libs/crosswalk/ext/platform/android/AndroidManifest.xml +9 -0
  13. data/libs/crosswalk/ext/platform/android/Rakefile +141 -0
  14. data/libs/crosswalk/ext/platform/android/adds/lib/armeabi/libxwalkcore.so +0 -0
  15. data/libs/crosswalk/ext/platform/android/adds/lib/armeabi/libxwalkdummy.so +0 -0
  16. data/libs/crosswalk/ext/platform/android/adds/lib/x86/libxwalkcore.so +0 -0
  17. data/libs/crosswalk/ext/platform/android/adds/lib/x86/libxwalkdummy.so +0 -0
  18. data/libs/crosswalk/ext/platform/android/adds/lib/xwalk_core_library_java.jar +0 -0
  19. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/bubble.9.png +0 -0
  20. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/bubble_arrow_up.png +0 -0
  21. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/color_picker_advanced_select_handle.png +0 -0
  22. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/crosswalk.png +0 -0
  23. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/dropdown_popup_background_down.9.png +0 -0
  24. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/dropdown_popup_background_up.9.png +0 -0
  25. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ic_menu_share_holo_light.png +0 -0
  26. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ic_search.png +0 -0
  27. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ic_warning.png +0 -0
  28. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ondemand_overlay.9.png +0 -0
  29. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/verify_checkmark.png +0 -0
  30. data/libs/crosswalk/ext/platform/android/adds/res/drawable-ldpi/crosswalk.png +0 -0
  31. data/libs/crosswalk/ext/platform/android/adds/res/drawable-mdpi/crosswalk.png +0 -0
  32. data/libs/crosswalk/ext/platform/android/adds/res/drawable-v21/button_borderless_compat.xml +10 -0
  33. data/libs/crosswalk/ext/platform/android/adds/res/drawable-v21/button_compat.xml +9 -0
  34. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/bubble.9.png +0 -0
  35. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/bubble_arrow_up.png +0 -0
  36. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/color_picker_advanced_select_handle.png +0 -0
  37. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/crosswalk.png +0 -0
  38. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/dropdown_popup_background_down.9.png +0 -0
  39. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/dropdown_popup_background_up.9.png +0 -0
  40. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ic_menu_share_holo_light.png +0 -0
  41. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ic_search.png +0 -0
  42. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ic_warning.png +0 -0
  43. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ondemand_overlay.9.png +0 -0
  44. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/verify_checkmark.png +0 -0
  45. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/ic_menu_share_holo_light.png +0 -0
  46. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/ic_search.png +0 -0
  47. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/ic_warning.png +0 -0
  48. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/verify_checkmark.png +0 -0
  49. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/ic_menu_share_holo_light.png +0 -0
  50. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/ic_search.png +0 -0
  51. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/ic_warning.png +0 -0
  52. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/verify_checkmark.png +0 -0
  53. data/libs/crosswalk/ext/platform/android/adds/res/drawable/autofill_chip_inset.xml +15 -0
  54. data/libs/crosswalk/ext/platform/android/adds/res/drawable/bubble.9.png +0 -0
  55. data/libs/crosswalk/ext/platform/android/adds/res/drawable/bubble_arrow_up.png +0 -0
  56. data/libs/crosswalk/ext/platform/android/adds/res/drawable/button_compat_shape.xml +9 -0
  57. data/libs/crosswalk/ext/platform/android/adds/res/drawable/color_button_background.xml +36 -0
  58. data/libs/crosswalk/ext/platform/android/adds/res/drawable/color_picker_advanced_select_handle.png +0 -0
  59. data/libs/crosswalk/ext/platform/android/adds/res/drawable/color_picker_border.xml +12 -0
  60. data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_label_color.xml +11 -0
  61. data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_popup_background.xml +13 -0
  62. data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_popup_background_down.9.png +0 -0
  63. data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_popup_background_up.9.png +0 -0
  64. data/libs/crosswalk/ext/platform/android/adds/res/drawable/ic_menu_share_holo_light.png +0 -0
  65. data/libs/crosswalk/ext/platform/android/adds/res/drawable/ic_search.png +0 -0
  66. data/libs/crosswalk/ext/platform/android/adds/res/drawable/ic_warning.png +0 -0
  67. data/libs/crosswalk/ext/platform/android/adds/res/drawable/launchscreen_bg.xml +19 -0
  68. data/libs/crosswalk/ext/platform/android/adds/res/drawable/ondemand_overlay.9.png +0 -0
  69. data/libs/crosswalk/ext/platform/android/adds/res/drawable/verify_checkmark.png +0 -0
  70. data/libs/crosswalk/ext/platform/android/adds/res/layout-land/date_time_picker_dialog.xml +42 -0
  71. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/autofill_keyboard_accessory_item.xml +40 -0
  72. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/autofill_suggestion_item.xml +18 -0
  73. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/color_picker_advanced_component.xml +46 -0
  74. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/color_picker_dialog_content.xml +51 -0
  75. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/color_picker_dialog_title.xml +41 -0
  76. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/date_time_suggestion.xml +35 -0
  77. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/dropdown_item.xml +58 -0
  78. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/multi_field_time_picker_dialog.xml +122 -0
  79. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/two_field_date_picker.xml +38 -0
  80. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/validation_message_bubble.xml +72 -0
  81. data/libs/crosswalk/ext/platform/android/adds/res/layout/autofill_keyboard_accessory_icon.xml +13 -0
  82. data/libs/crosswalk/ext/platform/android/adds/res/layout/autofill_keyboard_accessory_item.xml +17 -0
  83. data/libs/crosswalk/ext/platform/android/adds/res/layout/autofill_suggestion_item.xml +7 -0
  84. data/libs/crosswalk/ext/platform/android/adds/res/layout/color_picker_advanced_component.xml +30 -0
  85. data/libs/crosswalk/ext/platform/android/adds/res/layout/color_picker_dialog_content.xml +36 -0
  86. data/libs/crosswalk/ext/platform/android/adds/res/layout/color_picker_dialog_title.xml +25 -0
  87. data/libs/crosswalk/ext/platform/android/adds/res/layout/date_time_picker_dialog.xml +42 -0
  88. data/libs/crosswalk/ext/platform/android/adds/res/layout/date_time_suggestion.xml +16 -0
  89. data/libs/crosswalk/ext/platform/android/adds/res/layout/dropdown_item.xml +34 -0
  90. data/libs/crosswalk/ext/platform/android/adds/res/layout/multi_field_time_picker_dialog.xml +50 -0
  91. data/libs/crosswalk/ext/platform/android/adds/res/layout/two_field_date_picker.xml +26 -0
  92. data/libs/crosswalk/ext/platform/android/adds/res/layout/validation_message_bubble.xml +47 -0
  93. data/libs/crosswalk/ext/platform/android/adds/res/menu/select_action_menu.xml +54 -0
  94. data/libs/crosswalk/ext/platform/android/adds/res/raw/contacts_api.js +206 -0
  95. data/libs/crosswalk/ext/platform/android/adds/res/raw/device_capabilities_api.js +231 -0
  96. data/libs/crosswalk/ext/platform/android/adds/res/raw/empty.wav +0 -0
  97. data/libs/crosswalk/ext/platform/android/adds/res/raw/icudtl.dat +0 -0
  98. data/libs/crosswalk/ext/platform/android/adds/res/raw/launch_screen_api.js +9 -0
  99. data/libs/crosswalk/ext/platform/android/adds/res/raw/messaging_api.js +359 -0
  100. data/libs/crosswalk/ext/platform/android/adds/res/raw/presentation_api.js +144 -0
  101. data/libs/crosswalk/ext/platform/android/adds/res/raw/wifidirect_api.js +227 -0
  102. data/libs/crosswalk/ext/platform/android/adds/res/raw/xwalk.pak +0 -0
  103. data/libs/crosswalk/ext/platform/android/adds/res/values-am/android_content_strings.xml +15 -0
  104. data/libs/crosswalk/ext/platform/android/adds/res/values-am/android_ui_strings.xml +47 -0
  105. data/libs/crosswalk/ext/platform/android/adds/res/values-ar/android_content_strings.xml +15 -0
  106. data/libs/crosswalk/ext/platform/android/adds/res/values-ar/android_ui_strings.xml +47 -0
  107. data/libs/crosswalk/ext/platform/android/adds/res/values-bg/android_content_strings.xml +15 -0
  108. data/libs/crosswalk/ext/platform/android/adds/res/values-bg/android_ui_strings.xml +47 -0
  109. data/libs/crosswalk/ext/platform/android/adds/res/values-ca/android_content_strings.xml +15 -0
  110. data/libs/crosswalk/ext/platform/android/adds/res/values-ca/android_ui_strings.xml +47 -0
  111. data/libs/crosswalk/ext/platform/android/adds/res/values-cs/android_content_strings.xml +15 -0
  112. data/libs/crosswalk/ext/platform/android/adds/res/values-cs/android_ui_strings.xml +47 -0
  113. data/libs/crosswalk/ext/platform/android/adds/res/values-da/android_content_strings.xml +15 -0
  114. data/libs/crosswalk/ext/platform/android/adds/res/values-da/android_ui_strings.xml +47 -0
  115. data/libs/crosswalk/ext/platform/android/adds/res/values-de/android_content_strings.xml +15 -0
  116. data/libs/crosswalk/ext/platform/android/adds/res/values-de/android_ui_strings.xml +47 -0
  117. data/libs/crosswalk/ext/platform/android/adds/res/values-el/android_content_strings.xml +15 -0
  118. data/libs/crosswalk/ext/platform/android/adds/res/values-el/android_ui_strings.xml +47 -0
  119. data/libs/crosswalk/ext/platform/android/adds/res/values-en-rGB/android_content_strings.xml +15 -0
  120. data/libs/crosswalk/ext/platform/android/adds/res/values-en-rGB/android_ui_strings.xml +47 -0
  121. data/libs/crosswalk/ext/platform/android/adds/res/values-es-rUS/android_content_strings.xml +15 -0
  122. data/libs/crosswalk/ext/platform/android/adds/res/values-es-rUS/android_ui_strings.xml +47 -0
  123. data/libs/crosswalk/ext/platform/android/adds/res/values-es/android_content_strings.xml +15 -0
  124. data/libs/crosswalk/ext/platform/android/adds/res/values-es/android_ui_strings.xml +47 -0
  125. data/libs/crosswalk/ext/platform/android/adds/res/values-fa/android_content_strings.xml +15 -0
  126. data/libs/crosswalk/ext/platform/android/adds/res/values-fa/android_ui_strings.xml +47 -0
  127. data/libs/crosswalk/ext/platform/android/adds/res/values-fi/android_content_strings.xml +15 -0
  128. data/libs/crosswalk/ext/platform/android/adds/res/values-fi/android_ui_strings.xml +47 -0
  129. data/libs/crosswalk/ext/platform/android/adds/res/values-fr/android_content_strings.xml +15 -0
  130. data/libs/crosswalk/ext/platform/android/adds/res/values-fr/android_ui_strings.xml +47 -0
  131. data/libs/crosswalk/ext/platform/android/adds/res/values-hi/android_content_strings.xml +15 -0
  132. data/libs/crosswalk/ext/platform/android/adds/res/values-hi/android_ui_strings.xml +47 -0
  133. data/libs/crosswalk/ext/platform/android/adds/res/values-hr/android_content_strings.xml +15 -0
  134. data/libs/crosswalk/ext/platform/android/adds/res/values-hr/android_ui_strings.xml +47 -0
  135. data/libs/crosswalk/ext/platform/android/adds/res/values-hu/android_content_strings.xml +15 -0
  136. data/libs/crosswalk/ext/platform/android/adds/res/values-hu/android_ui_strings.xml +47 -0
  137. data/libs/crosswalk/ext/platform/android/adds/res/values-in/android_content_strings.xml +15 -0
  138. data/libs/crosswalk/ext/platform/android/adds/res/values-in/android_ui_strings.xml +47 -0
  139. data/libs/crosswalk/ext/platform/android/adds/res/values-it/android_content_strings.xml +15 -0
  140. data/libs/crosswalk/ext/platform/android/adds/res/values-it/android_ui_strings.xml +47 -0
  141. data/libs/crosswalk/ext/platform/android/adds/res/values-iw/android_content_strings.xml +15 -0
  142. data/libs/crosswalk/ext/platform/android/adds/res/values-iw/android_ui_strings.xml +47 -0
  143. data/libs/crosswalk/ext/platform/android/adds/res/values-ja/android_content_strings.xml +15 -0
  144. data/libs/crosswalk/ext/platform/android/adds/res/values-ja/android_ui_strings.xml +47 -0
  145. data/libs/crosswalk/ext/platform/android/adds/res/values-ko/android_content_strings.xml +15 -0
  146. data/libs/crosswalk/ext/platform/android/adds/res/values-ko/android_ui_strings.xml +47 -0
  147. data/libs/crosswalk/ext/platform/android/adds/res/values-lt/android_content_strings.xml +15 -0
  148. data/libs/crosswalk/ext/platform/android/adds/res/values-lt/android_ui_strings.xml +47 -0
  149. data/libs/crosswalk/ext/platform/android/adds/res/values-lv/android_content_strings.xml +15 -0
  150. data/libs/crosswalk/ext/platform/android/adds/res/values-lv/android_ui_strings.xml +47 -0
  151. data/libs/crosswalk/ext/platform/android/adds/res/values-nb/android_content_strings.xml +15 -0
  152. data/libs/crosswalk/ext/platform/android/adds/res/values-nb/android_ui_strings.xml +47 -0
  153. data/libs/crosswalk/ext/platform/android/adds/res/values-nl/android_content_strings.xml +15 -0
  154. data/libs/crosswalk/ext/platform/android/adds/res/values-nl/android_ui_strings.xml +47 -0
  155. data/libs/crosswalk/ext/platform/android/adds/res/values-pl/android_content_strings.xml +15 -0
  156. data/libs/crosswalk/ext/platform/android/adds/res/values-pl/android_ui_strings.xml +47 -0
  157. data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rBR/android_content_strings.xml +15 -0
  158. data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rBR/android_ui_strings.xml +47 -0
  159. data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rPT/android_content_strings.xml +15 -0
  160. data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rPT/android_ui_strings.xml +47 -0
  161. data/libs/crosswalk/ext/platform/android/adds/res/values-ro/android_content_strings.xml +15 -0
  162. data/libs/crosswalk/ext/platform/android/adds/res/values-ro/android_ui_strings.xml +47 -0
  163. data/libs/crosswalk/ext/platform/android/adds/res/values-ru/android_content_strings.xml +15 -0
  164. data/libs/crosswalk/ext/platform/android/adds/res/values-ru/android_ui_strings.xml +47 -0
  165. data/libs/crosswalk/ext/platform/android/adds/res/values-sk/android_content_strings.xml +15 -0
  166. data/libs/crosswalk/ext/platform/android/adds/res/values-sk/android_ui_strings.xml +47 -0
  167. data/libs/crosswalk/ext/platform/android/adds/res/values-sl/android_content_strings.xml +15 -0
  168. data/libs/crosswalk/ext/platform/android/adds/res/values-sl/android_ui_strings.xml +47 -0
  169. data/libs/crosswalk/ext/platform/android/adds/res/values-sr/android_content_strings.xml +15 -0
  170. data/libs/crosswalk/ext/platform/android/adds/res/values-sr/android_ui_strings.xml +47 -0
  171. data/libs/crosswalk/ext/platform/android/adds/res/values-sv/android_content_strings.xml +15 -0
  172. data/libs/crosswalk/ext/platform/android/adds/res/values-sv/android_ui_strings.xml +47 -0
  173. data/libs/crosswalk/ext/platform/android/adds/res/values-sw/android_content_strings.xml +15 -0
  174. data/libs/crosswalk/ext/platform/android/adds/res/values-sw/android_ui_strings.xml +47 -0
  175. data/libs/crosswalk/ext/platform/android/adds/res/values-th/android_content_strings.xml +15 -0
  176. data/libs/crosswalk/ext/platform/android/adds/res/values-th/android_ui_strings.xml +47 -0
  177. data/libs/crosswalk/ext/platform/android/adds/res/values-tl/android_content_strings.xml +15 -0
  178. data/libs/crosswalk/ext/platform/android/adds/res/values-tl/android_ui_strings.xml +47 -0
  179. data/libs/crosswalk/ext/platform/android/adds/res/values-tr/android_content_strings.xml +15 -0
  180. data/libs/crosswalk/ext/platform/android/adds/res/values-tr/android_ui_strings.xml +47 -0
  181. data/libs/crosswalk/ext/platform/android/adds/res/values-uk/android_content_strings.xml +15 -0
  182. data/libs/crosswalk/ext/platform/android/adds/res/values-uk/android_ui_strings.xml +47 -0
  183. data/libs/crosswalk/ext/platform/android/adds/res/values-v14/theme.xml +16 -0
  184. data/libs/crosswalk/ext/platform/android/adds/res/values-v17/styles.xml +19 -0
  185. data/libs/crosswalk/ext/platform/android/adds/res/values-v17/ui_java_styles.xml +41 -0
  186. data/libs/crosswalk/ext/platform/android/adds/res/values-v21/styles.xml +14 -0
  187. data/libs/crosswalk/ext/platform/android/adds/res/values-v21/ui_java_styles.xml +14 -0
  188. data/libs/crosswalk/ext/platform/android/adds/res/values-vi/android_content_strings.xml +15 -0
  189. data/libs/crosswalk/ext/platform/android/adds/res/values-vi/android_ui_strings.xml +47 -0
  190. data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rCN/android_content_strings.xml +15 -0
  191. data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rCN/android_ui_strings.xml +47 -0
  192. data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rTW/android_content_strings.xml +15 -0
  193. data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rTW/android_ui_strings.xml +47 -0
  194. data/libs/crosswalk/ext/platform/android/adds/res/values/android_content_strings.xml +15 -0
  195. data/libs/crosswalk/ext/platform/android/adds/res/values/android_ui_strings.xml +47 -0
  196. data/libs/crosswalk/ext/platform/android/adds/res/values/android_xwalk_strings.xml +17 -0
  197. data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_attrs.xml +9 -0
  198. data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_dimens.xml +31 -0
  199. data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_strings.xml +16 -0
  200. data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_styles.xml +101 -0
  201. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_app_strings.xml +28 -0
  202. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_attrs.xml +11 -0
  203. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_colors.xml +13 -0
  204. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_core_internal_java_strings.xml +16 -0
  205. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_core_java_strings.xml +16 -0
  206. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_dimens.xml +11 -0
  207. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_resources_list.xml +7 -0
  208. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_styles.xml +40 -0
  209. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_values.xml +10 -0
  210. data/libs/crosswalk/ext/platform/android/ext_java.files +14 -0
  211. data/libs/crosswalk/ext/platform/android/ext_native.files +7 -0
  212. data/libs/crosswalk/ext/platform/android/jni/Crosswalk_impl.cpp +61 -0
  213. data/libs/crosswalk/ext/platform/android/src/com/rho/crosswalk/Crosswalk.java +14 -0
  214. data/libs/crosswalk/ext/platform/android/src/com/rho/crosswalk/CrosswalkFactory.java +18 -0
  215. data/libs/crosswalk/ext/platform/android/src/com/rho/crosswalk/CrosswalkSingleton.java +24 -0
  216. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/CrosswalkExtension.java +16 -0
  217. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/RhodesListener.java +18 -0
  218. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/TauXWResourceClient.java +182 -0
  219. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/TauXWUIClient.java +125 -0
  220. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/TauXWalkWebView.java +368 -0
  221. data/libs/crosswalk/ext/platform/iphone/Crosswalk.xcodeproj/project.pbxproj +368 -0
  222. data/libs/crosswalk/ext/platform/iphone/Crosswalk_Prefix.pch +7 -0
  223. data/libs/crosswalk/ext/platform/iphone/Rakefile +73 -0
  224. data/libs/crosswalk/ext/platform/iphone/impl/Crosswalk.h +14 -0
  225. data/libs/crosswalk/ext/platform/iphone/impl/Crosswalk.m +24 -0
  226. data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkFactorySingleton.m +16 -0
  227. data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkSetup.m +9 -0
  228. data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkSingleton.h +17 -0
  229. data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkSingleton.m +23 -0
  230. data/libs/crosswalk/ext/platform/iphone/impl/readme.txt +7 -0
  231. data/libs/crosswalk/ext/platform/qt/Crosswalk.pro +66 -0
  232. data/libs/crosswalk/ext/platform/qt/Rakefile +35 -0
  233. data/libs/crosswalk/ext/platform/qt/src/Crosswalk_impl.cpp +77 -0
  234. data/libs/crosswalk/ext/platform/wm/Crosswalk.sln +52 -0
  235. data/libs/crosswalk/ext/platform/wm/Crosswalk.vcproj +714 -0
  236. data/libs/crosswalk/ext/platform/wm/Crosswalk.vsprops +15 -0
  237. data/libs/crosswalk/ext/platform/wm/src/Crosswalk_impl.cpp +77 -0
  238. data/libs/crosswalk/ext/platform/wp8/Crosswalk.props +18 -0
  239. data/libs/crosswalk/ext/platform/wp8/Crosswalk.vcxproj +170 -0
  240. data/libs/crosswalk/ext/platform/wp8/Crosswalk.vcxproj.filters +50 -0
  241. data/libs/crosswalk/ext/platform/wp8/CrosswalkImpl.csproj +119 -0
  242. data/libs/crosswalk/ext/platform/wp8/CrosswalkImpl.props +8 -0
  243. data/libs/crosswalk/ext/platform/wp8/CrosswalkImpl.targets +7 -0
  244. data/libs/crosswalk/ext/platform/wp8/CrosswalkLib.props +18 -0
  245. data/libs/crosswalk/ext/platform/wp8/CrosswalkLib.vcxproj +185 -0
  246. data/libs/crosswalk/ext/platform/wp8/CrosswalkLib.vcxproj.filters +58 -0
  247. data/libs/crosswalk/ext/platform/wp8/src/Crosswalk_impl.cpp +76 -0
  248. data/libs/crosswalk/ext/platform/wp8/src/Crosswalk_impl.cs +69 -0
  249. data/libs/crosswalk/ext/platform/wp8/src/Properties/AssemblyInfo.cs +37 -0
  250. data/libs/enterprise-barcode/ext.yml +13 -0
  251. data/libs/enterprise-barcode/ext/barcode.xml +2144 -0
  252. data/libs/enterprise-barcode/ext/build +17 -0
  253. data/libs/enterprise-barcode/ext/build.bat +29 -0
  254. data/libs/enterprise-barcode/ext/platform/android/AndroidManifest.xml +31 -0
  255. data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/AUTHORS +58 -0
  256. data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/CHANGES +266 -0
  257. data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/COPYING +201 -0
  258. data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/README +11 -0
  259. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable-hdpi/cancel_icon.png +0 -0
  260. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable-hdpi/ok_icon.png +0 -0
  261. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable-hdpi/retake_icon.png +0 -0
  262. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable/cancel_icon.png +0 -0
  263. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable/ok_icon.png +0 -0
  264. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable/retake_icon.png +0 -0
  265. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/layout/capture.xml +122 -0
  266. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/raw/beep.ogg +0 -0
  267. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/values/attrs.xml +20 -0
  268. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/values/colors.xml +42 -0
  269. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/values/ids.xml +31 -0
  270. data/libs/enterprise-barcode/ext/platform/android/adds/lib/armeabi/liballbarcode.a +0 -0
  271. data/libs/enterprise-barcode/ext/platform/android/adds/lib/x86/liballbarcode.a +0 -0
  272. data/libs/enterprise-barcode/ext/platform/android/allbarcode.jar +0 -0
  273. data/libs/enterprise-barcode/ext/platform/iphone/Barcode.xcodeproj/project.pbxproj +524 -0
  274. data/libs/enterprise-barcode/ext/platform/iphone/Barcode_Prefix.pch +7 -0
  275. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeCallbackHelper.h +27 -0
  276. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeCallbackHelper.mm +231 -0
  277. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewController.h +95 -0
  278. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewController.m +1017 -0
  279. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewFactory.h +7 -0
  280. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewFactory.mm +58 -0
  281. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewFactoryRegister.mm +18 -0
  282. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewManager.h +16 -0
  283. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewManager.mm +32 -0
  284. data/libs/enterprise-barcode/ext/platform/iphone/Classes/ImageProvider.cpp +25 -0
  285. data/libs/enterprise-barcode/ext/platform/iphone/Classes/ImageProvider.h +15 -0
  286. data/libs/enterprise-barcode/ext/platform/iphone/Classes/ImageProvider.mm +159 -0
  287. data/libs/enterprise-barcode/ext/platform/iphone/Classes/barcode.m +123 -0
  288. data/libs/enterprise-barcode/ext/platform/iphone/Rakefile +69 -0
  289. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/COPYING +27 -0
  290. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarCameraSimulator.h +45 -0
  291. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarCaptureReader.h +111 -0
  292. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarHelpController.h +60 -0
  293. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarImage.h +69 -0
  294. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarImageScanner.h +51 -0
  295. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderController.h +142 -0
  296. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderView.h +135 -0
  297. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderViewController.h +130 -0
  298. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarSDK.h +34 -0
  299. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarSymbol.h +71 -0
  300. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar.h +1497 -0
  301. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Decoder.h +202 -0
  302. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Exception.h +187 -0
  303. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Image.h +321 -0
  304. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/ImageScanner.h +130 -0
  305. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Processor.h +223 -0
  306. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Scanner.h +162 -0
  307. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Symbol.h +528 -0
  308. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Video.h +170 -0
  309. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Window.h +136 -0
  310. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/LICENSE +504 -0
  311. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/README +59 -0
  312. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-back.png +0 -0
  313. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-help.html +88 -0
  314. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-helpicons.png +0 -0
  315. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-samples.png +0 -0
  316. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/libzbar.a +0 -0
  317. data/libs/enterprise-barcode/ext/platform/iphone/impl/Barcode.h +21 -0
  318. data/libs/enterprise-barcode/ext/platform/iphone/impl/Barcode.m +132 -0
  319. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeFactory.h +10 -0
  320. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeFactory.m +16 -0
  321. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeFactorySingleton.m +16 -0
  322. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeSetup.m +8 -0
  323. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeSingleton.h +17 -0
  324. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeSingleton.m +22 -0
  325. data/libs/enterprise-barcode/ext/platform/iphone/impl/readme.txt +7 -0
  326. data/libs/enterprise-barcode/ext/platform/wm/Barcode.sln +44 -0
  327. data/libs/enterprise-barcode/ext/platform/wm/Barcode.vcproj +836 -0
  328. data/libs/enterprise-barcode/ext/platform/wm/Barcode.vsprops +15 -0
  329. data/libs/enterprise-barcode/ext/platform/wm/readme.txt +0 -0
  330. data/libs/enterprise-barcode/ext/platform/wm/src/Barcode_impl.cpp +376 -0
  331. data/libs/enterprise-barcode/ext/platform/wm/src/DecodeNotifier.cpp +173 -0
  332. data/libs/enterprise-barcode/ext/platform/wm/src/DecodeNotifier.h +149 -0
  333. data/libs/enterprise-barcode/ext/platform/wm/src/EMDKInterfaceAbstraction.cpp +476 -0
  334. data/libs/enterprise-barcode/ext/platform/wm/src/GetDecoderProperties.cpp +1195 -0
  335. data/libs/enterprise-barcode/ext/platform/wm/src/GetScannerProperties.cpp +553 -0
  336. data/libs/enterprise-barcode/ext/platform/wm/src/KeyInjector.cpp +177 -0
  337. data/libs/enterprise-barcode/ext/platform/wm/src/KeyInjector.h +40 -0
  338. data/libs/enterprise-barcode/ext/platform/wm/src/NotificationLoader.cpp +76 -0
  339. data/libs/enterprise-barcode/ext/platform/wm/src/NotificationLoader.h +44 -0
  340. data/libs/enterprise-barcode/ext/platform/wm/src/RSM.cpp +1211 -0
  341. data/libs/enterprise-barcode/ext/platform/wm/src/Scanner.cpp +2609 -0
  342. data/libs/enterprise-barcode/ext/platform/wm/src/Scanner.h +1099 -0
  343. data/libs/enterprise-barcode/ext/platform/wm/src/ScannerDefines.h +322 -0
  344. data/libs/enterprise-barcode/ext/platform/wm/src/SetDecoderProperties.cpp +2106 -0
  345. data/libs/enterprise-barcode/ext/platform/wm/src/SetScannerProperties.cpp +1060 -0
  346. data/libs/enterprise-barcode/ext/platform/wm/src/Utilities.cpp +184 -0
  347. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeImpl.csproj +119 -0
  348. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeImpl.props +8 -0
  349. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeImpl.targets +35 -0
  350. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeLib.props +18 -0
  351. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeLib.vcxproj +185 -0
  352. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeLib.vcxproj.filters +58 -0
  353. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.Graphics.Imaging.dll +0 -0
  354. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.Graphics.Imaging.winmd +0 -0
  355. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.Graphics.Imaging.xml +4813 -0
  356. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.InteropServices.WindowsRuntime.dll +0 -0
  357. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.InteropServices.WindowsRuntime.winmd +0 -0
  358. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.InteropServices.WindowsRuntime.xml +41 -0
  359. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/OpticalReaderLib.dll +0 -0
  360. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib.XML +68 -0
  361. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib.dll +0 -0
  362. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/BarcodeReaderLib.csproj +120 -0
  363. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/BarcodeReaderLib.sln +34 -0
  364. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/CameraNavigatePage.xaml +32 -0
  365. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/CameraNavigatePage.xaml.cs +235 -0
  366. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/OpticalReaderTask.cs +182 -0
  367. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/Properties/AssemblyInfo.cs +37 -0
  368. data/libs/enterprise-barcode/ext/platform/wp8/lib/Nokia.Graphics.Imaging.Managed.dll +0 -0
  369. data/libs/enterprise-barcode/ext/platform/wp8/lib/Nokia.Graphics.Imaging.Managed.xml +341 -0
  370. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.Graphics.Imaging.dll +0 -0
  371. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.Graphics.Imaging.winmd +0 -0
  372. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.Graphics.Imaging.xml +4813 -0
  373. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.InteropServices.WindowsRuntime.dll +0 -0
  374. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.InteropServices.WindowsRuntime.winmd +0 -0
  375. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.InteropServices.WindowsRuntime.xml +41 -0
  376. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/OpticalReaderLib.dll +0 -0
  377. data/libs/enterprise-barcode/ext/platform/wp8/lib/zxing.wp8.0.XML +10324 -0
  378. data/libs/enterprise-barcode/ext/platform/wp8/lib/zxing.wp8.0.dll +0 -0
  379. data/libs/enterprise-barcode/ext/platform/wp8/src/Barcode_impl.cs +630 -0
  380. data/libs/enterprise-barcode/ext/platform/wp8/src/Properties/AssemblyInfo.cs +37 -0
  381. data/libs/enterprise-barcode/public/api/generated/Rho.Barcode.js +772 -0
  382. data/libs/ie/rhobrowser.dll +0 -0
  383. data/libs/nodejs.rb +2 -0
  384. data/libs/nodejs/ext.yml +25 -0
  385. data/libs/nodejs/ext/Nodejs.xml +37 -0
  386. data/libs/nodejs/ext/build +19 -0
  387. data/libs/nodejs/ext/build.bat +29 -0
  388. data/libs/nodejs/ext/platform/android/Rakefile +161 -0
  389. data/libs/nodejs/ext/platform/android/ext_native.files +8 -0
  390. data/libs/nodejs/ext/platform/android/jxCore/jx.h +134 -0
  391. data/libs/nodejs/ext/platform/android/jxCore/jx_result.h +221 -0
  392. data/libs/nodejs/ext/platform/android/jxCore/libcares_arm.a +0 -0
  393. data/libs/nodejs/ext/platform/android/jxCore/libcares_ia32.a +0 -0
  394. data/libs/nodejs/ext/platform/android/jxCore/libcares_x64.a +0 -0
  395. data/libs/nodejs/ext/platform/android/jxCore/libchrome_zlib_arm.a +0 -0
  396. data/libs/nodejs/ext/platform/android/jxCore/libchrome_zlib_ia32.a +0 -0
  397. data/libs/nodejs/ext/platform/android/jxCore/libchrome_zlib_x64.a +0 -0
  398. data/libs/nodejs/ext/platform/android/jxCore/libhttp_parser_arm.a +0 -0
  399. data/libs/nodejs/ext/platform/android/jxCore/libhttp_parser_ia32.a +0 -0
  400. data/libs/nodejs/ext/platform/android/jxCore/libhttp_parser_x64.a +0 -0
  401. data/libs/nodejs/ext/platform/android/jxCore/libjx_arm.a +0 -0
  402. data/libs/nodejs/ext/platform/android/jxCore/libjx_ia32.a +0 -0
  403. data/libs/nodejs/ext/platform/android/jxCore/libjx_x64.a +0 -0
  404. data/libs/nodejs/ext/platform/android/jxCore/libopenssl_arm.a +0 -0
  405. data/libs/nodejs/ext/platform/android/jxCore/libopenssl_ia32.a +0 -0
  406. data/libs/nodejs/ext/platform/android/jxCore/libopenssl_x64.a +0 -0
  407. data/libs/nodejs/ext/platform/android/jxCore/libsqlite3_arm.a +0 -0
  408. data/libs/nodejs/ext/platform/android/jxCore/libsqlite3_ia32.a +0 -0
  409. data/libs/nodejs/ext/platform/android/jxCore/libsqlite3_x64.a +0 -0
  410. data/libs/nodejs/ext/platform/android/jxCore/libuv_arm.a +0 -0
  411. data/libs/nodejs/ext/platform/android/jxCore/libuv_ia32.a +0 -0
  412. data/libs/nodejs/ext/platform/android/jxCore/libuv_x64.a +0 -0
  413. data/libs/nodejs/ext/platform/android/jxCore/libv8_base_arm.a +0 -0
  414. data/libs/nodejs/ext/platform/android/jxCore/libv8_base_ia32.a +0 -0
  415. data/libs/nodejs/ext/platform/android/jxCore/libv8_base_x64.a +0 -0
  416. data/libs/nodejs/ext/platform/android/jxCore/libv8_nosnapshot_arm.a +0 -0
  417. data/libs/nodejs/ext/platform/android/jxCore/libv8_nosnapshot_ia32.a +0 -0
  418. data/libs/nodejs/ext/platform/android/jxCore/libv8_nosnapshot_x64.a +0 -0
  419. data/libs/nodejs/ext/platform/iphone/Nodejs.xcodeproj/project.pbxproj +350 -0
  420. data/libs/nodejs/ext/platform/iphone/Nodejs_Prefix.pch +7 -0
  421. data/libs/nodejs/ext/platform/iphone/Rakefile +73 -0
  422. data/libs/nodejs/ext/platform/iphone/jxCore/jx.h +134 -0
  423. data/libs/nodejs/ext/platform/iphone/jxCore/jx_result.h +221 -0
  424. data/libs/nodejs/ext/platform/iphone/jxCore/libcares.a +0 -0
  425. data/libs/nodejs/ext/platform/iphone/jxCore/libchrome_zlib.a +0 -0
  426. data/libs/nodejs/ext/platform/iphone/jxCore/libhttp_parser.a +0 -0
  427. data/libs/nodejs/ext/platform/iphone/jxCore/libjx.a +0 -0
  428. data/libs/nodejs/ext/platform/iphone/jxCore/libmozjs.a +0 -0
  429. data/libs/nodejs/ext/platform/iphone/jxCore/libopenssl.a +0 -0
  430. data/libs/nodejs/ext/platform/iphone/jxCore/libsqlite3.a +0 -0
  431. data/libs/nodejs/ext/platform/iphone/jxCore/libuv.a +0 -0
  432. data/libs/nodejs/ext/shared/jxcore/jx.h +134 -0
  433. data/libs/nodejs/ext/shared/jxcore/jx_result.h +221 -0
  434. data/libs/nodejs/ext/shared/jxcoretau.cpp +454 -0
  435. data/libs/nodejs/ext/shared/jxcoretau.h +20 -0
  436. data/libs/nodejs/ext/shared/nodejs_impl.cpp +106 -0
  437. data/libs/nodejs/nodejs.rb +2 -0
  438. data/libs/openssl-edge.rb +2 -0
  439. data/libs/openssl-edge/ext.yml +4 -0
  440. data/libs/openssl-edge/ext/Rakefile +145 -0
  441. data/libs/openssl-edge/ext/android/Rakefile +107 -0
  442. data/libs/openssl-edge/ext/android/ext_native.files +32 -0
  443. data/libs/openssl-edge/ext/android/extconf.h +91 -0
  444. data/libs/openssl-edge/ext/build +12 -0
  445. data/libs/openssl-edge/ext/build.bat +5 -0
  446. data/libs/openssl-edge/ext/extconf.rb +141 -0
  447. data/libs/openssl-edge/ext/openssl.pro +109 -0
  448. data/libs/openssl-edge/ext/openssl.sln +52 -0
  449. data/libs/openssl-edge/ext/openssl.vcproj +1010 -0
  450. data/libs/openssl-edge/ext/openssl_missing.c +1163 -0
  451. data/libs/openssl-edge/ext/openssl_missing.h +537 -0
  452. data/libs/openssl-edge/ext/ossl.c +1203 -0
  453. data/libs/openssl-edge/ext/ossl.h +242 -0
  454. data/libs/openssl-edge/ext/ossl_asn1.c +2008 -0
  455. data/libs/openssl-edge/ext/ossl_asn1.h +66 -0
  456. data/libs/openssl-edge/ext/ossl_bio.c +118 -0
  457. data/libs/openssl-edge/ext/ossl_bio.h +19 -0
  458. data/libs/openssl-edge/ext/ossl_bn.c +1153 -0
  459. data/libs/openssl-edge/ext/ossl_bn.h +23 -0
  460. data/libs/openssl-edge/ext/ossl_cipher.c +1085 -0
  461. data/libs/openssl-edge/ext/ossl_cipher.h +20 -0
  462. data/libs/openssl-edge/ext/ossl_config.c +89 -0
  463. data/libs/openssl-edge/ext/ossl_config.h +19 -0
  464. data/libs/openssl-edge/ext/ossl_digest.c +453 -0
  465. data/libs/openssl-edge/ext/ossl_digest.h +20 -0
  466. data/libs/openssl-edge/ext/ossl_engine.c +580 -0
  467. data/libs/openssl-edge/ext/ossl_engine.h +19 -0
  468. data/libs/openssl-edge/ext/ossl_hmac.c +398 -0
  469. data/libs/openssl-edge/ext/ossl_hmac.h +18 -0
  470. data/libs/openssl-edge/ext/ossl_ns_spki.c +406 -0
  471. data/libs/openssl-edge/ext/ossl_ns_spki.h +19 -0
  472. data/libs/openssl-edge/ext/ossl_ocsp.c +2013 -0
  473. data/libs/openssl-edge/ext/ossl_ocsp.h +23 -0
  474. data/libs/openssl-edge/ext/ossl_pkcs12.c +261 -0
  475. data/libs/openssl-edge/ext/ossl_pkcs12.h +13 -0
  476. data/libs/openssl-edge/ext/ossl_pkcs5.c +180 -0
  477. data/libs/openssl-edge/ext/ossl_pkcs5.h +6 -0
  478. data/libs/openssl-edge/ext/ossl_pkcs7.c +1157 -0
  479. data/libs/openssl-edge/ext/ossl_pkcs7.h +20 -0
  480. data/libs/openssl-edge/ext/ossl_pkey.c +469 -0
  481. data/libs/openssl-edge/ext/ossl_pkey.h +245 -0
  482. data/libs/openssl-edge/ext/ossl_pkey_dh.c +650 -0
  483. data/libs/openssl-edge/ext/ossl_pkey_dsa.c +672 -0
  484. data/libs/openssl-edge/ext/ossl_pkey_ec.c +1806 -0
  485. data/libs/openssl-edge/ext/ossl_pkey_rsa.c +768 -0
  486. data/libs/openssl-edge/ext/ossl_rand.c +238 -0
  487. data/libs/openssl-edge/ext/ossl_rand.h +18 -0
  488. data/libs/openssl-edge/ext/ossl_ssl.c +2724 -0
  489. data/libs/openssl-edge/ext/ossl_ssl.h +41 -0
  490. data/libs/openssl-edge/ext/ossl_ssl_session.c +352 -0
  491. data/libs/openssl-edge/ext/ossl_version.h +15 -0
  492. data/libs/openssl-edge/ext/ossl_x509.c +186 -0
  493. data/libs/openssl-edge/ext/ossl_x509.h +119 -0
  494. data/libs/openssl-edge/ext/ossl_x509attr.c +328 -0
  495. data/libs/openssl-edge/ext/ossl_x509cert.c +863 -0
  496. data/libs/openssl-edge/ext/ossl_x509crl.c +565 -0
  497. data/libs/openssl-edge/ext/ossl_x509ext.c +480 -0
  498. data/libs/openssl-edge/ext/ossl_x509name.c +547 -0
  499. data/libs/openssl-edge/ext/ossl_x509req.c +492 -0
  500. data/libs/openssl-edge/ext/ossl_x509revoked.c +279 -0
  501. data/libs/openssl-edge/ext/ossl_x509store.c +846 -0
  502. data/libs/openssl-edge/ext/ruby_missing.h +32 -0
  503. data/libs/openssl-edge/openssl-edge.rb +2 -0
  504. data/libs/openssl-edge/openssl.rb +24 -0
  505. data/libs/openssl-edge/openssl/bn.rb +35 -0
  506. data/libs/openssl-edge/openssl/buffering.rb +341 -0
  507. data/libs/openssl-edge/openssl/cipher.rb +65 -0
  508. data/libs/openssl-edge/openssl/digest.rb +61 -0
  509. data/libs/openssl-edge/openssl/ssl-internal.rb +180 -0
  510. data/libs/openssl-edge/openssl/ssl.rb +1 -0
  511. data/libs/openssl-edge/openssl/x509-internal.rb +153 -0
  512. data/libs/openssl-edge/openssl/x509.rb +1 -0
  513. data/libs/openssl.so-edge.rb +2 -0
  514. data/libs/openssl.so-edge/ext.yml +8 -0
  515. data/libs/openssl.so-edge/ext/Rakefile +140 -0
  516. data/libs/openssl.so-edge/ext/android/armeabi/libcrypto.a +0 -0
  517. data/libs/openssl.so-edge/ext/android/armeabi/libssl.a +0 -0
  518. data/libs/openssl.so-edge/ext/android/x86/libcrypto.a +0 -0
  519. data/libs/openssl.so-edge/ext/android/x86/libssl.a +0 -0
  520. data/libs/openssl.so-edge/ext/build +12 -0
  521. data/libs/openssl.so-edge/ext/build.bat +1 -0
  522. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/dh/dh_locl.h +56 -0
  523. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/dsa/dsa_locl.h +76 -0
  524. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/evp/evp_locl.h +66 -0
  525. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/hmac/hmac_lcl.h +33 -0
  526. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/asn1_int.h +94 -0
  527. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/async.h +14 -0
  528. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_conf.h +28 -0
  529. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_dh.h +17 -0
  530. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_int.h +82 -0
  531. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_srp.h +32 -0
  532. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/chacha.h +49 -0
  533. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/cryptlib.h +81 -0
  534. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/cryptlib_int.h +31 -0
  535. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/dso_conf.h +16 -0
  536. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/engine.h +20 -0
  537. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/err_int.h +17 -0
  538. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/evp_int.h +382 -0
  539. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/md32_common.h +383 -0
  540. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/objects.h +12 -0
  541. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/poly1305.h +19 -0
  542. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/rand.h +20 -0
  543. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/x509_int.h +267 -0
  544. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/ocsp/ocsp_lcl.h +216 -0
  545. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/rsa/rsa_locl.h +96 -0
  546. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/x509/x509_lcl.h +142 -0
  547. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/e_os.h +520 -0
  548. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/bio.h +26 -0
  549. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/comp.h +12 -0
  550. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/conf.h +32 -0
  551. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/constant_time_locl.h +185 -0
  552. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/dane.h +103 -0
  553. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/dso.h +216 -0
  554. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/err.h +15 -0
  555. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/numbers.h +68 -0
  556. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/o_dir.h +63 -0
  557. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/o_str.h +17 -0
  558. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/thread_once.h +42 -0
  559. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/__DECC_INCLUDE_EPILOGUE.H +16 -0
  560. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/__DECC_INCLUDE_PROLOGUE.H +20 -0
  561. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/aes.h +92 -0
  562. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/asn1.h +1096 -0
  563. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/asn1_mac.h +10 -0
  564. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/asn1t.h +924 -0
  565. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/async.h +98 -0
  566. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/bio.h +854 -0
  567. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/blowfish.h +61 -0
  568. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/bn.h +575 -0
  569. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/buffer.h +76 -0
  570. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/camellia.h +83 -0
  571. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/cast.h +53 -0
  572. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/cmac.h +41 -0
  573. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/cms.h +512 -0
  574. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/comp.h +72 -0
  575. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/conf.h +216 -0
  576. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/conf_api.h +40 -0
  577. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/crypto.h +463 -0
  578. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ct.h +518 -0
  579. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/des.h +174 -0
  580. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/dh.h +343 -0
  581. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/dsa.h +282 -0
  582. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/dtls1.h +56 -0
  583. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/e_os2.h +311 -0
  584. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ebcdic.h +33 -0
  585. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ec.h +1581 -0
  586. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ecdh.h +10 -0
  587. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ecdsa.h +10 -0
  588. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/engine.h +842 -0
  589. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/err.h +259 -0
  590. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/evp.h +1586 -0
  591. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/hmac.h +49 -0
  592. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/idea.h +64 -0
  593. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/kdf.h +75 -0
  594. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/lhash.h +204 -0
  595. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/md2.h +44 -0
  596. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/md4.h +51 -0
  597. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/md5.h +50 -0
  598. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/mdc2.h +42 -0
  599. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/modes.h +203 -0
  600. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/obj_mac.h +4577 -0
  601. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/objects.h +1097 -0
  602. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ocsp.h +409 -0
  603. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/opensslconf.h +169 -0
  604. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/opensslconf.h.in +141 -0
  605. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/opensslv.h +105 -0
  606. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ossl_typ.h +190 -0
  607. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pem.h +501 -0
  608. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pem2.h +20 -0
  609. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pkcs12.h +282 -0
  610. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pkcs7.h +404 -0
  611. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rand.h +89 -0
  612. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rc2.h +51 -0
  613. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rc4.h +36 -0
  614. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rc5.h +63 -0
  615. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ripemd.h +47 -0
  616. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rsa.h +588 -0
  617. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/safestack.h +164 -0
  618. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/seed.h +98 -0
  619. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/sha.h +119 -0
  620. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/srp.h +131 -0
  621. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/srtp.h +50 -0
  622. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ssl.h +2527 -0
  623. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ssl2.h +24 -0
  624. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ssl3.h +307 -0
  625. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/stack.h +78 -0
  626. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/symhacks.h +52 -0
  627. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/tls1.h +972 -0
  628. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ts.h +643 -0
  629. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/txt_db.h +57 -0
  630. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ui.h +368 -0
  631. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/whrlpool.h +48 -0
  632. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/x509.h +1123 -0
  633. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/x509_vfy.h +539 -0
  634. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/x509v3.h +1005 -0
  635. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/packet_locl.h +555 -0
  636. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/record/record.h +240 -0
  637. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/record/record_locl.h +114 -0
  638. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/ssl_locl.h +2127 -0
  639. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/statem/statem.h +123 -0
  640. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/statem/statem_locl.h +124 -0
  641. data/libs/openssl.so-edge/openssl.so.rb +2 -0
  642. data/libs/webkit.rb +2 -0
  643. data/libs/webkit/ext.yml +4 -0
  644. data/libs/webkit/ext/build +12 -0
  645. data/libs/webkit/ext/build.bat +7 -0
  646. data/libs/webkit/ext/wm/Rakefile +61 -0
  647. data/libs/webkit/ext/wm/RhoMsgs.cpp +17 -0
  648. data/libs/webkit/ext/wm/RhoMsgs.h +14 -0
  649. data/libs/webkit/ext/wm/RhoWKBrowserEngine.cpp +736 -0
  650. data/libs/webkit/ext/wm/RhoWKBrowserEngine.h +105 -0
  651. data/libs/webkit/ext/wm/lib/npapi/rhobridge.dll +0 -0
  652. data/libs/webkit/ext/wm/lib/rhoengine_defs.h +80 -0
  653. data/libs/webkit/ext/wm/lib/rhowebkit.dll +0 -0
  654. data/libs/webkit/ext/wm/webkit.sln +36 -0
  655. data/libs/webkit/ext/wm/webkit.suo +0 -0
  656. data/libs/webkit/ext/wm/webkit.vcproj +800 -0
  657. data/libs/webkit/ext/wm/webkit.vsprops +20 -0
  658. data/libs/webkit/webkit.rb +2 -0
  659. data/rho-tau-extensions.gemspec +23 -0
  660. data/version +1 -0
  661. metadata +705 -0
@@ -0,0 +1,98 @@
1
+ /*
2
+ * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
3
+ *
4
+ * Licensed under the OpenSSL license (the "License"). You may not use
5
+ * this file except in compliance with the License. You can obtain a copy
6
+ * in the file LICENSE in the source distribution or at
7
+ * https://www.openssl.org/source/license.html
8
+ */
9
+
10
+ #include <stdlib.h>
11
+
12
+ #ifndef HEADER_ASYNC_H
13
+ # define HEADER_ASYNC_H
14
+
15
+ #if defined(_WIN32)
16
+ # if defined(BASETYPES) || defined(_WINDEF_H)
17
+ /* application has to include <windows.h> to use this */
18
+ #define OSSL_ASYNC_FD HANDLE
19
+ #define OSSL_BAD_ASYNC_FD INVALID_HANDLE_VALUE
20
+ # endif
21
+ #else
22
+ #define OSSL_ASYNC_FD int
23
+ #define OSSL_BAD_ASYNC_FD -1
24
+ #endif
25
+
26
+
27
+ # ifdef __cplusplus
28
+ extern "C" {
29
+ # endif
30
+
31
+ typedef struct async_job_st ASYNC_JOB;
32
+ typedef struct async_wait_ctx_st ASYNC_WAIT_CTX;
33
+
34
+ #define ASYNC_ERR 0
35
+ #define ASYNC_NO_JOBS 1
36
+ #define ASYNC_PAUSE 2
37
+ #define ASYNC_FINISH 3
38
+
39
+ int ASYNC_init_thread(size_t max_size, size_t init_size);
40
+ void ASYNC_cleanup_thread(void);
41
+
42
+ #ifdef OSSL_ASYNC_FD
43
+ ASYNC_WAIT_CTX *ASYNC_WAIT_CTX_new(void);
44
+ void ASYNC_WAIT_CTX_free(ASYNC_WAIT_CTX *ctx);
45
+ int ASYNC_WAIT_CTX_set_wait_fd(ASYNC_WAIT_CTX *ctx, const void *key,
46
+ OSSL_ASYNC_FD fd,
47
+ void *custom_data,
48
+ void (*cleanup)(ASYNC_WAIT_CTX *, const void *,
49
+ OSSL_ASYNC_FD, void *));
50
+ int ASYNC_WAIT_CTX_get_fd(ASYNC_WAIT_CTX *ctx, const void *key,
51
+ OSSL_ASYNC_FD *fd, void **custom_data);
52
+ int ASYNC_WAIT_CTX_get_all_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *fd,
53
+ size_t *numfds);
54
+ int ASYNC_WAIT_CTX_get_changed_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *addfd,
55
+ size_t *numaddfds, OSSL_ASYNC_FD *delfd,
56
+ size_t *numdelfds);
57
+ int ASYNC_WAIT_CTX_clear_fd(ASYNC_WAIT_CTX *ctx, const void *key);
58
+ #endif
59
+
60
+ int ASYNC_is_capable(void);
61
+
62
+ int ASYNC_start_job(ASYNC_JOB **job, ASYNC_WAIT_CTX *ctx, int *ret,
63
+ int (*func)(void *), void *args, size_t size);
64
+ int ASYNC_pause_job(void);
65
+
66
+ ASYNC_JOB *ASYNC_get_current_job(void);
67
+ ASYNC_WAIT_CTX *ASYNC_get_wait_ctx(ASYNC_JOB *job);
68
+ void ASYNC_block_pause(void);
69
+ void ASYNC_unblock_pause(void);
70
+
71
+ /* BEGIN ERROR CODES */
72
+ /*
73
+ * The following lines are auto generated by the script mkerr.pl. Any changes
74
+ * made after this point may be overwritten when the script is next run.
75
+ */
76
+
77
+ int ERR_load_ASYNC_strings(void);
78
+
79
+ /* Error codes for the ASYNC functions. */
80
+
81
+ /* Function codes. */
82
+ # define ASYNC_F_ASYNC_CTX_NEW 100
83
+ # define ASYNC_F_ASYNC_INIT_THREAD 101
84
+ # define ASYNC_F_ASYNC_JOB_NEW 102
85
+ # define ASYNC_F_ASYNC_PAUSE_JOB 103
86
+ # define ASYNC_F_ASYNC_START_FUNC 104
87
+ # define ASYNC_F_ASYNC_START_JOB 105
88
+
89
+ /* Reason codes. */
90
+ # define ASYNC_R_FAILED_TO_SET_POOL 101
91
+ # define ASYNC_R_FAILED_TO_SWAP_CONTEXT 102
92
+ # define ASYNC_R_INIT_FAILED 105
93
+ # define ASYNC_R_INVALID_POOL_SIZE 103
94
+
95
+ # ifdef __cplusplus
96
+ }
97
+ # endif
98
+ #endif
@@ -0,0 +1,854 @@
1
+ /*
2
+ * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
3
+ *
4
+ * Licensed under the OpenSSL license (the "License"). You may not use
5
+ * this file except in compliance with the License. You can obtain a copy
6
+ * in the file LICENSE in the source distribution or at
7
+ * https://www.openssl.org/source/license.html
8
+ */
9
+
10
+ #ifndef HEADER_BIO_H
11
+ # define HEADER_BIO_H
12
+
13
+ # include <openssl/e_os2.h>
14
+
15
+ # ifndef OPENSSL_NO_STDIO
16
+ # include <stdio.h>
17
+ # endif
18
+ # include <stdarg.h>
19
+
20
+ # include <openssl/crypto.h>
21
+
22
+ # ifndef OPENSSL_NO_SCTP
23
+ # ifndef OPENSSL_SYS_VMS
24
+ # include <stdint.h>
25
+ # else
26
+ # include <inttypes.h>
27
+ # endif
28
+ # endif
29
+
30
+ #ifdef __cplusplus
31
+ extern "C" {
32
+ #endif
33
+
34
+ /* There are the classes of BIOs */
35
+ # define BIO_TYPE_DESCRIPTOR 0x0100 /* socket, fd, connect or accept */
36
+ # define BIO_TYPE_FILTER 0x0200
37
+ # define BIO_TYPE_SOURCE_SINK 0x0400
38
+
39
+ /* These are the 'types' of BIOs */
40
+ # define BIO_TYPE_NONE 0
41
+ # define BIO_TYPE_MEM ( 1|BIO_TYPE_SOURCE_SINK)
42
+ # define BIO_TYPE_FILE ( 2|BIO_TYPE_SOURCE_SINK)
43
+
44
+ # define BIO_TYPE_FD ( 4|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)
45
+ # define BIO_TYPE_SOCKET ( 5|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)
46
+ # define BIO_TYPE_NULL ( 6|BIO_TYPE_SOURCE_SINK)
47
+ # define BIO_TYPE_SSL ( 7|BIO_TYPE_FILTER)
48
+ # define BIO_TYPE_MD ( 8|BIO_TYPE_FILTER)
49
+ # define BIO_TYPE_BUFFER ( 9|BIO_TYPE_FILTER)
50
+ # define BIO_TYPE_CIPHER (10|BIO_TYPE_FILTER)
51
+ # define BIO_TYPE_BASE64 (11|BIO_TYPE_FILTER)
52
+ # define BIO_TYPE_CONNECT (12|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)
53
+ # define BIO_TYPE_ACCEPT (13|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)
54
+
55
+ # define BIO_TYPE_NBIO_TEST (16|BIO_TYPE_FILTER)/* server proxy BIO */
56
+ # define BIO_TYPE_NULL_FILTER (17|BIO_TYPE_FILTER)
57
+ # define BIO_TYPE_BIO (19|BIO_TYPE_SOURCE_SINK)/* half a BIO pair */
58
+ # define BIO_TYPE_LINEBUFFER (20|BIO_TYPE_FILTER)
59
+ # define BIO_TYPE_DGRAM (21|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)
60
+ # define BIO_TYPE_ASN1 (22|BIO_TYPE_FILTER)
61
+ # define BIO_TYPE_COMP (23|BIO_TYPE_FILTER)
62
+ # ifndef OPENSSL_NO_SCTP
63
+ # define BIO_TYPE_DGRAM_SCTP (24|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)
64
+ # endif
65
+
66
+ #define BIO_TYPE_START 128
67
+
68
+ /*
69
+ * BIO_FILENAME_READ|BIO_CLOSE to open or close on free.
70
+ * BIO_set_fp(in,stdin,BIO_NOCLOSE);
71
+ */
72
+ # define BIO_NOCLOSE 0x00
73
+ # define BIO_CLOSE 0x01
74
+
75
+ /*
76
+ * These are used in the following macros and are passed to BIO_ctrl()
77
+ */
78
+ # define BIO_CTRL_RESET 1/* opt - rewind/zero etc */
79
+ # define BIO_CTRL_EOF 2/* opt - are we at the eof */
80
+ # define BIO_CTRL_INFO 3/* opt - extra tit-bits */
81
+ # define BIO_CTRL_SET 4/* man - set the 'IO' type */
82
+ # define BIO_CTRL_GET 5/* man - get the 'IO' type */
83
+ # define BIO_CTRL_PUSH 6/* opt - internal, used to signify change */
84
+ # define BIO_CTRL_POP 7/* opt - internal, used to signify change */
85
+ # define BIO_CTRL_GET_CLOSE 8/* man - set the 'close' on free */
86
+ # define BIO_CTRL_SET_CLOSE 9/* man - set the 'close' on free */
87
+ # define BIO_CTRL_PENDING 10/* opt - is their more data buffered */
88
+ # define BIO_CTRL_FLUSH 11/* opt - 'flush' buffered output */
89
+ # define BIO_CTRL_DUP 12/* man - extra stuff for 'duped' BIO */
90
+ # define BIO_CTRL_WPENDING 13/* opt - number of bytes still to write */
91
+ # define BIO_CTRL_SET_CALLBACK 14/* opt - set callback function */
92
+ # define BIO_CTRL_GET_CALLBACK 15/* opt - set callback function */
93
+
94
+ # define BIO_CTRL_SET_FILENAME 30/* BIO_s_file special */
95
+
96
+ /* dgram BIO stuff */
97
+ # define BIO_CTRL_DGRAM_CONNECT 31/* BIO dgram special */
98
+ # define BIO_CTRL_DGRAM_SET_CONNECTED 32/* allow for an externally connected
99
+ * socket to be passed in */
100
+ # define BIO_CTRL_DGRAM_SET_RECV_TIMEOUT 33/* setsockopt, essentially */
101
+ # define BIO_CTRL_DGRAM_GET_RECV_TIMEOUT 34/* getsockopt, essentially */
102
+ # define BIO_CTRL_DGRAM_SET_SEND_TIMEOUT 35/* setsockopt, essentially */
103
+ # define BIO_CTRL_DGRAM_GET_SEND_TIMEOUT 36/* getsockopt, essentially */
104
+
105
+ # define BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP 37/* flag whether the last */
106
+ # define BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP 38/* I/O operation tiemd out */
107
+
108
+ /* #ifdef IP_MTU_DISCOVER */
109
+ # define BIO_CTRL_DGRAM_MTU_DISCOVER 39/* set DF bit on egress packets */
110
+ /* #endif */
111
+
112
+ # define BIO_CTRL_DGRAM_QUERY_MTU 40/* as kernel for current MTU */
113
+ # define BIO_CTRL_DGRAM_GET_FALLBACK_MTU 47
114
+ # define BIO_CTRL_DGRAM_GET_MTU 41/* get cached value for MTU */
115
+ # define BIO_CTRL_DGRAM_SET_MTU 42/* set cached value for MTU.
116
+ * want to use this if asking
117
+ * the kernel fails */
118
+
119
+ # define BIO_CTRL_DGRAM_MTU_EXCEEDED 43/* check whether the MTU was
120
+ * exceed in the previous write
121
+ * operation */
122
+
123
+ # define BIO_CTRL_DGRAM_GET_PEER 46
124
+ # define BIO_CTRL_DGRAM_SET_PEER 44/* Destination for the data */
125
+
126
+ # define BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT 45/* Next DTLS handshake timeout
127
+ * to adjust socket timeouts */
128
+ # define BIO_CTRL_DGRAM_SET_DONT_FRAG 48
129
+
130
+ # define BIO_CTRL_DGRAM_GET_MTU_OVERHEAD 49
131
+
132
+ # define BIO_CTRL_DGRAM_SET_PEEK_MODE 50
133
+
134
+ # ifndef OPENSSL_NO_SCTP
135
+ /* SCTP stuff */
136
+ # define BIO_CTRL_DGRAM_SCTP_SET_IN_HANDSHAKE 50
137
+ # define BIO_CTRL_DGRAM_SCTP_ADD_AUTH_KEY 51
138
+ # define BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY 52
139
+ # define BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD 53
140
+ # define BIO_CTRL_DGRAM_SCTP_GET_SNDINFO 60
141
+ # define BIO_CTRL_DGRAM_SCTP_SET_SNDINFO 61
142
+ # define BIO_CTRL_DGRAM_SCTP_GET_RCVINFO 62
143
+ # define BIO_CTRL_DGRAM_SCTP_SET_RCVINFO 63
144
+ # define BIO_CTRL_DGRAM_SCTP_GET_PRINFO 64
145
+ # define BIO_CTRL_DGRAM_SCTP_SET_PRINFO 65
146
+ # define BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN 70
147
+ # endif
148
+
149
+ /* modifiers */
150
+ # define BIO_FP_READ 0x02
151
+ # define BIO_FP_WRITE 0x04
152
+ # define BIO_FP_APPEND 0x08
153
+ # define BIO_FP_TEXT 0x10
154
+
155
+ # define BIO_FLAGS_READ 0x01
156
+ # define BIO_FLAGS_WRITE 0x02
157
+ # define BIO_FLAGS_IO_SPECIAL 0x04
158
+ # define BIO_FLAGS_RWS (BIO_FLAGS_READ|BIO_FLAGS_WRITE|BIO_FLAGS_IO_SPECIAL)
159
+ # define BIO_FLAGS_SHOULD_RETRY 0x08
160
+ # ifndef BIO_FLAGS_UPLINK
161
+ /*
162
+ * "UPLINK" flag denotes file descriptors provided by application. It
163
+ * defaults to 0, as most platforms don't require UPLINK interface.
164
+ */
165
+ # define BIO_FLAGS_UPLINK 0
166
+ # endif
167
+
168
+ # define BIO_FLAGS_BASE64_NO_NL 0x100
169
+
170
+ /*
171
+ * This is used with memory BIOs:
172
+ * BIO_FLAGS_MEM_RDONLY means we shouldn't free up or change the data in any way;
173
+ * BIO_FLAGS_NONCLEAR_RST means we should't clear data on reset.
174
+ */
175
+ # define BIO_FLAGS_MEM_RDONLY 0x200
176
+ # define BIO_FLAGS_NONCLEAR_RST 0x400
177
+
178
+ typedef union bio_addr_st BIO_ADDR;
179
+ typedef struct bio_addrinfo_st BIO_ADDRINFO;
180
+
181
+ int BIO_get_new_index(void);
182
+ void BIO_set_flags(BIO *b, int flags);
183
+ int BIO_test_flags(const BIO *b, int flags);
184
+ void BIO_clear_flags(BIO *b, int flags);
185
+
186
+ # define BIO_get_flags(b) BIO_test_flags(b, ~(0x0))
187
+ # define BIO_set_retry_special(b) \
188
+ BIO_set_flags(b, (BIO_FLAGS_IO_SPECIAL|BIO_FLAGS_SHOULD_RETRY))
189
+ # define BIO_set_retry_read(b) \
190
+ BIO_set_flags(b, (BIO_FLAGS_READ|BIO_FLAGS_SHOULD_RETRY))
191
+ # define BIO_set_retry_write(b) \
192
+ BIO_set_flags(b, (BIO_FLAGS_WRITE|BIO_FLAGS_SHOULD_RETRY))
193
+
194
+ /* These are normally used internally in BIOs */
195
+ # define BIO_clear_retry_flags(b) \
196
+ BIO_clear_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))
197
+ # define BIO_get_retry_flags(b) \
198
+ BIO_test_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))
199
+
200
+ /* These should be used by the application to tell why we should retry */
201
+ # define BIO_should_read(a) BIO_test_flags(a, BIO_FLAGS_READ)
202
+ # define BIO_should_write(a) BIO_test_flags(a, BIO_FLAGS_WRITE)
203
+ # define BIO_should_io_special(a) BIO_test_flags(a, BIO_FLAGS_IO_SPECIAL)
204
+ # define BIO_retry_type(a) BIO_test_flags(a, BIO_FLAGS_RWS)
205
+ # define BIO_should_retry(a) BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY)
206
+
207
+ /*
208
+ * The next three are used in conjunction with the BIO_should_io_special()
209
+ * condition. After this returns true, BIO *BIO_get_retry_BIO(BIO *bio, int
210
+ * *reason); will walk the BIO stack and return the 'reason' for the special
211
+ * and the offending BIO. Given a BIO, BIO_get_retry_reason(bio) will return
212
+ * the code.
213
+ */
214
+ /*
215
+ * Returned from the SSL bio when the certificate retrieval code had an error
216
+ */
217
+ # define BIO_RR_SSL_X509_LOOKUP 0x01
218
+ /* Returned from the connect BIO when a connect would have blocked */
219
+ # define BIO_RR_CONNECT 0x02
220
+ /* Returned from the accept BIO when an accept would have blocked */
221
+ # define BIO_RR_ACCEPT 0x03
222
+
223
+ /* These are passed by the BIO callback */
224
+ # define BIO_CB_FREE 0x01
225
+ # define BIO_CB_READ 0x02
226
+ # define BIO_CB_WRITE 0x03
227
+ # define BIO_CB_PUTS 0x04
228
+ # define BIO_CB_GETS 0x05
229
+ # define BIO_CB_CTRL 0x06
230
+
231
+ /*
232
+ * The callback is called before and after the underling operation, The
233
+ * BIO_CB_RETURN flag indicates if it is after the call
234
+ */
235
+ # define BIO_CB_RETURN 0x80
236
+ # define BIO_CB_return(a) ((a)|BIO_CB_RETURN)
237
+ # define BIO_cb_pre(a) (!((a)&BIO_CB_RETURN))
238
+ # define BIO_cb_post(a) ((a)&BIO_CB_RETURN)
239
+
240
+ typedef long (*BIO_callback_fn)(BIO *b, int oper, const char *argp, int argi,
241
+ long argl, long ret);
242
+ BIO_callback_fn BIO_get_callback(const BIO *b);
243
+ void BIO_set_callback(BIO *b, BIO_callback_fn callback);
244
+ char *BIO_get_callback_arg(const BIO *b);
245
+ void BIO_set_callback_arg(BIO *b, char *arg);
246
+
247
+ typedef struct bio_method_st BIO_METHOD;
248
+
249
+ const char *BIO_method_name(const BIO *b);
250
+ int BIO_method_type(const BIO *b);
251
+
252
+ typedef void bio_info_cb(BIO *, int, const char *, int, long, long);
253
+
254
+ DEFINE_STACK_OF(BIO)
255
+
256
+ /* Prefix and suffix callback in ASN1 BIO */
257
+ typedef int asn1_ps_func (BIO *b, unsigned char **pbuf, int *plen,
258
+ void *parg);
259
+
260
+ # ifndef OPENSSL_NO_SCTP
261
+ /* SCTP parameter structs */
262
+ struct bio_dgram_sctp_sndinfo {
263
+ uint16_t snd_sid;
264
+ uint16_t snd_flags;
265
+ uint32_t snd_ppid;
266
+ uint32_t snd_context;
267
+ };
268
+
269
+ struct bio_dgram_sctp_rcvinfo {
270
+ uint16_t rcv_sid;
271
+ uint16_t rcv_ssn;
272
+ uint16_t rcv_flags;
273
+ uint32_t rcv_ppid;
274
+ uint32_t rcv_tsn;
275
+ uint32_t rcv_cumtsn;
276
+ uint32_t rcv_context;
277
+ };
278
+
279
+ struct bio_dgram_sctp_prinfo {
280
+ uint16_t pr_policy;
281
+ uint32_t pr_value;
282
+ };
283
+ # endif
284
+
285
+ /*
286
+ * #define BIO_CONN_get_param_hostname BIO_ctrl
287
+ */
288
+
289
+ # define BIO_C_SET_CONNECT 100
290
+ # define BIO_C_DO_STATE_MACHINE 101
291
+ # define BIO_C_SET_NBIO 102
292
+ /* # define BIO_C_SET_PROXY_PARAM 103 */
293
+ # define BIO_C_SET_FD 104
294
+ # define BIO_C_GET_FD 105
295
+ # define BIO_C_SET_FILE_PTR 106
296
+ # define BIO_C_GET_FILE_PTR 107
297
+ # define BIO_C_SET_FILENAME 108
298
+ # define BIO_C_SET_SSL 109
299
+ # define BIO_C_GET_SSL 110
300
+ # define BIO_C_SET_MD 111
301
+ # define BIO_C_GET_MD 112
302
+ # define BIO_C_GET_CIPHER_STATUS 113
303
+ # define BIO_C_SET_BUF_MEM 114
304
+ # define BIO_C_GET_BUF_MEM_PTR 115
305
+ # define BIO_C_GET_BUFF_NUM_LINES 116
306
+ # define BIO_C_SET_BUFF_SIZE 117
307
+ # define BIO_C_SET_ACCEPT 118
308
+ # define BIO_C_SSL_MODE 119
309
+ # define BIO_C_GET_MD_CTX 120
310
+ /* # define BIO_C_GET_PROXY_PARAM 121 */
311
+ # define BIO_C_SET_BUFF_READ_DATA 122/* data to read first */
312
+ # define BIO_C_GET_CONNECT 123
313
+ # define BIO_C_GET_ACCEPT 124
314
+ # define BIO_C_SET_SSL_RENEGOTIATE_BYTES 125
315
+ # define BIO_C_GET_SSL_NUM_RENEGOTIATES 126
316
+ # define BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT 127
317
+ # define BIO_C_FILE_SEEK 128
318
+ # define BIO_C_GET_CIPHER_CTX 129
319
+ # define BIO_C_SET_BUF_MEM_EOF_RETURN 130/* return end of input
320
+ * value */
321
+ # define BIO_C_SET_BIND_MODE 131
322
+ # define BIO_C_GET_BIND_MODE 132
323
+ # define BIO_C_FILE_TELL 133
324
+ # define BIO_C_GET_SOCKS 134
325
+ # define BIO_C_SET_SOCKS 135
326
+
327
+ # define BIO_C_SET_WRITE_BUF_SIZE 136/* for BIO_s_bio */
328
+ # define BIO_C_GET_WRITE_BUF_SIZE 137
329
+ # define BIO_C_MAKE_BIO_PAIR 138
330
+ # define BIO_C_DESTROY_BIO_PAIR 139
331
+ # define BIO_C_GET_WRITE_GUARANTEE 140
332
+ # define BIO_C_GET_READ_REQUEST 141
333
+ # define BIO_C_SHUTDOWN_WR 142
334
+ # define BIO_C_NREAD0 143
335
+ # define BIO_C_NREAD 144
336
+ # define BIO_C_NWRITE0 145
337
+ # define BIO_C_NWRITE 146
338
+ # define BIO_C_RESET_READ_REQUEST 147
339
+ # define BIO_C_SET_MD_CTX 148
340
+
341
+ # define BIO_C_SET_PREFIX 149
342
+ # define BIO_C_GET_PREFIX 150
343
+ # define BIO_C_SET_SUFFIX 151
344
+ # define BIO_C_GET_SUFFIX 152
345
+
346
+ # define BIO_C_SET_EX_ARG 153
347
+ # define BIO_C_GET_EX_ARG 154
348
+
349
+ # define BIO_C_SET_CONNECT_MODE 155
350
+
351
+ # define BIO_set_app_data(s,arg) BIO_set_ex_data(s,0,arg)
352
+ # define BIO_get_app_data(s) BIO_get_ex_data(s,0)
353
+
354
+ # define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL)
355
+
356
+ # ifndef OPENSSL_NO_SOCK
357
+ /* IP families we support, for BIO_s_connect() and BIO_s_accept() */
358
+ /* Note: the underlying operating system may not support some of them */
359
+ # define BIO_FAMILY_IPV4 4
360
+ # define BIO_FAMILY_IPV6 6
361
+ # define BIO_FAMILY_IPANY 256
362
+
363
+ /* BIO_s_connect() */
364
+ # define BIO_set_conn_hostname(b,name) BIO_ctrl(b,BIO_C_SET_CONNECT,0,(char *)name)
365
+ # define BIO_set_conn_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,1,(char *)port)
366
+ # define BIO_set_conn_address(b,addr) BIO_ctrl(b,BIO_C_SET_CONNECT,2,(char *)addr)
367
+ # define BIO_set_conn_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_CONNECT,3,f)
368
+ # define BIO_get_conn_hostname(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0,NULL))
369
+ # define BIO_get_conn_port(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1,NULL))
370
+ # define BIO_get_conn_address(b) ((const BIO_ADDR *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2,NULL))
371
+ # define BIO_get_conn_ip_family(b) BIO_ctrl(b,BIO_C_GET_CONNECT,3,NULL)
372
+ # define BIO_set_conn_mode(b,n) BIO_ctrl(b,BIO_C_SET_CONNECT_MODE,(n),NULL)
373
+
374
+ /* BIO_s_accept() */
375
+ # define BIO_set_accept_name(b,name) BIO_ctrl(b,BIO_C_SET_ACCEPT,0,(char *)name)
376
+ # define BIO_set_accept_port(b,port) BIO_ctrl(b,BIO_C_SET_ACCEPT,1,(char *)port)
377
+ # define BIO_get_accept_name(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0))
378
+ # define BIO_get_accept_port(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,1))
379
+ # define BIO_get_peer_name(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,2))
380
+ # define BIO_get_peer_port(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,3))
381
+ /* #define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) */
382
+ # define BIO_set_nbio_accept(b,n) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(n)?(void *)"a":NULL)
383
+ # define BIO_set_accept_bios(b,bio) BIO_ctrl(b,BIO_C_SET_ACCEPT,3,(char *)bio)
384
+ # define BIO_set_accept_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_ACCEPT,4,f)
385
+ # define BIO_get_accept_ip_family(b) BIO_ctrl(b,BIO_C_GET_ACCEPT,4,NULL)
386
+
387
+ /* Aliases kept for backward compatibility */
388
+ # define BIO_BIND_NORMAL 0
389
+ # define BIO_BIND_REUSEADDR BIO_SOCK_REUSEADDR
390
+ # define BIO_BIND_REUSEADDR_IF_UNUSED BIO_SOCK_REUSEADDR
391
+ # define BIO_set_bind_mode(b,mode) BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,NULL)
392
+ # define BIO_get_bind_mode(b) BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL)
393
+
394
+ /* BIO_s_accept() and BIO_s_connect() */
395
+ # define BIO_do_connect(b) BIO_do_handshake(b)
396
+ # define BIO_do_accept(b) BIO_do_handshake(b)
397
+ # endif /* OPENSSL_NO_SOCK */
398
+
399
+ # define BIO_do_handshake(b) BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL)
400
+
401
+ /* BIO_s_datagram(), BIO_s_fd(), BIO_s_socket(), BIO_s_accept() and BIO_s_connect() */
402
+ # define BIO_set_fd(b,fd,c) BIO_int_ctrl(b,BIO_C_SET_FD,c,fd)
403
+ # define BIO_get_fd(b,c) BIO_ctrl(b,BIO_C_GET_FD,0,(char *)c)
404
+
405
+ /* BIO_s_file() */
406
+ # define BIO_set_fp(b,fp,c) BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,(char *)fp)
407
+ # define BIO_get_fp(b,fpp) BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,(char *)fpp)
408
+
409
+ /* BIO_s_fd() and BIO_s_file() */
410
+ # define BIO_seek(b,ofs) (int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL)
411
+ # define BIO_tell(b) (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL)
412
+
413
+ /*
414
+ * name is cast to lose const, but might be better to route through a
415
+ * function so we can do it safely
416
+ */
417
+ # ifdef CONST_STRICT
418
+ /*
419
+ * If you are wondering why this isn't defined, its because CONST_STRICT is
420
+ * purely a compile-time kludge to allow const to be checked.
421
+ */
422
+ int BIO_read_filename(BIO *b, const char *name);
423
+ # else
424
+ # define BIO_read_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
425
+ BIO_CLOSE|BIO_FP_READ,(char *)name)
426
+ # endif
427
+ # define BIO_write_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
428
+ BIO_CLOSE|BIO_FP_WRITE,name)
429
+ # define BIO_append_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
430
+ BIO_CLOSE|BIO_FP_APPEND,name)
431
+ # define BIO_rw_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
432
+ BIO_CLOSE|BIO_FP_READ|BIO_FP_WRITE,name)
433
+
434
+ /*
435
+ * WARNING WARNING, this ups the reference count on the read bio of the SSL
436
+ * structure. This is because the ssl read BIO is now pointed to by the
437
+ * next_bio field in the bio. So when you free the BIO, make sure you are
438
+ * doing a BIO_free_all() to catch the underlying BIO.
439
+ */
440
+ # define BIO_set_ssl(b,ssl,c) BIO_ctrl(b,BIO_C_SET_SSL,c,(char *)ssl)
441
+ # define BIO_get_ssl(b,sslp) BIO_ctrl(b,BIO_C_GET_SSL,0,(char *)sslp)
442
+ # define BIO_set_ssl_mode(b,client) BIO_ctrl(b,BIO_C_SSL_MODE,client,NULL)
443
+ # define BIO_set_ssl_renegotiate_bytes(b,num) \
444
+ BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,NULL)
445
+ # define BIO_get_num_renegotiates(b) \
446
+ BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,NULL)
447
+ # define BIO_set_ssl_renegotiate_timeout(b,seconds) \
448
+ BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,NULL)
449
+
450
+ /* defined in evp.h */
451
+ /* #define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,1,(char *)md) */
452
+
453
+ # define BIO_get_mem_data(b,pp) BIO_ctrl(b,BIO_CTRL_INFO,0,(char *)pp)
454
+ # define BIO_set_mem_buf(b,bm,c) BIO_ctrl(b,BIO_C_SET_BUF_MEM,c,(char *)bm)
455
+ # define BIO_get_mem_ptr(b,pp) BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char *)pp)
456
+ # define BIO_set_mem_eof_return(b,v) \
457
+ BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,NULL)
458
+
459
+ /* For the BIO_f_buffer() type */
460
+ # define BIO_get_buffer_num_lines(b) BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,NULL)
461
+ # define BIO_set_buffer_size(b,size) BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,NULL)
462
+ # define BIO_set_read_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0)
463
+ # define BIO_set_write_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1)
464
+ # define BIO_set_buffer_read_data(b,buf,num) BIO_ctrl(b,BIO_C_SET_BUFF_READ_DATA,num,buf)
465
+
466
+ /* Don't use the next one unless you know what you are doing :-) */
467
+ # define BIO_dup_state(b,ret) BIO_ctrl(b,BIO_CTRL_DUP,0,(char *)(ret))
468
+
469
+ # define BIO_reset(b) (int)BIO_ctrl(b,BIO_CTRL_RESET,0,NULL)
470
+ # define BIO_eof(b) (int)BIO_ctrl(b,BIO_CTRL_EOF,0,NULL)
471
+ # define BIO_set_close(b,c) (int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)
472
+ # define BIO_get_close(b) (int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)
473
+ # define BIO_pending(b) (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)
474
+ # define BIO_wpending(b) (int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)
475
+ /* ...pending macros have inappropriate return type */
476
+ size_t BIO_ctrl_pending(BIO *b);
477
+ size_t BIO_ctrl_wpending(BIO *b);
478
+ # define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)
479
+ # define BIO_get_info_callback(b,cbp) (int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0, \
480
+ cbp)
481
+ # define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb)
482
+
483
+ /* For the BIO_f_buffer() type */
484
+ # define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL)
485
+
486
+ /* For BIO_s_bio() */
487
+ # define BIO_set_write_buf_size(b,size) (int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL)
488
+ # define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)
489
+ # define BIO_make_bio_pair(b1,b2) (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2)
490
+ # define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)
491
+ # define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)
492
+ /* macros with inappropriate type -- but ...pending macros use int too: */
493
+ # define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)
494
+ # define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)
495
+ size_t BIO_ctrl_get_write_guarantee(BIO *b);
496
+ size_t BIO_ctrl_get_read_request(BIO *b);
497
+ int BIO_ctrl_reset_read_request(BIO *b);
498
+
499
+ /* ctrl macros for dgram */
500
+ # define BIO_ctrl_dgram_connect(b,peer) \
501
+ (int)BIO_ctrl(b,BIO_CTRL_DGRAM_CONNECT,0, (char *)peer)
502
+ # define BIO_ctrl_set_connected(b,peer) \
503
+ (int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_CONNECTED, 0, (char *)peer)
504
+ # define BIO_dgram_recv_timedout(b) \
505
+ (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP, 0, NULL)
506
+ # define BIO_dgram_send_timedout(b) \
507
+ (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP, 0, NULL)
508
+ # define BIO_dgram_get_peer(b,peer) \
509
+ (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_PEER, 0, (char *)peer)
510
+ # define BIO_dgram_set_peer(b,peer) \
511
+ (int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_PEER, 0, (char *)peer)
512
+ # define BIO_dgram_get_mtu_overhead(b) \
513
+ (unsigned int)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_MTU_OVERHEAD, 0, NULL)
514
+
515
+ #define BIO_get_ex_new_index(l, p, newf, dupf, freef) \
516
+ CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_BIO, l, p, newf, dupf, freef)
517
+ int BIO_set_ex_data(BIO *bio, int idx, void *data);
518
+ void *BIO_get_ex_data(BIO *bio, int idx);
519
+ uint64_t BIO_number_read(BIO *bio);
520
+ uint64_t BIO_number_written(BIO *bio);
521
+
522
+ /* For BIO_f_asn1() */
523
+ int BIO_asn1_set_prefix(BIO *b, asn1_ps_func *prefix,
524
+ asn1_ps_func *prefix_free);
525
+ int BIO_asn1_get_prefix(BIO *b, asn1_ps_func **pprefix,
526
+ asn1_ps_func **pprefix_free);
527
+ int BIO_asn1_set_suffix(BIO *b, asn1_ps_func *suffix,
528
+ asn1_ps_func *suffix_free);
529
+ int BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix,
530
+ asn1_ps_func **psuffix_free);
531
+
532
+ const BIO_METHOD *BIO_s_file(void);
533
+ BIO *BIO_new_file(const char *filename, const char *mode);
534
+ # ifndef OPENSSL_NO_STDIO
535
+ BIO *BIO_new_fp(FILE *stream, int close_flag);
536
+ # endif
537
+ BIO *BIO_new(const BIO_METHOD *type);
538
+ int BIO_free(BIO *a);
539
+ void BIO_set_data(BIO *a, void *ptr);
540
+ void *BIO_get_data(BIO *a);
541
+ void BIO_set_init(BIO *a, int init);
542
+ int BIO_get_init(BIO *a);
543
+ void BIO_set_shutdown(BIO *a, int shut);
544
+ int BIO_get_shutdown(BIO *a);
545
+ void BIO_vfree(BIO *a);
546
+ int BIO_up_ref(BIO *a);
547
+ int BIO_read(BIO *b, void *data, int len);
548
+ int BIO_gets(BIO *bp, char *buf, int size);
549
+ int BIO_write(BIO *b, const void *data, int len);
550
+ int BIO_puts(BIO *bp, const char *buf);
551
+ int BIO_indent(BIO *b, int indent, int max);
552
+ long BIO_ctrl(BIO *bp, int cmd, long larg, void *parg);
553
+ long BIO_callback_ctrl(BIO *b, int cmd,
554
+ void (*fp) (BIO *, int, const char *, int, long, long));
555
+ void *BIO_ptr_ctrl(BIO *bp, int cmd, long larg);
556
+ long BIO_int_ctrl(BIO *bp, int cmd, long larg, int iarg);
557
+ BIO *BIO_push(BIO *b, BIO *append);
558
+ BIO *BIO_pop(BIO *b);
559
+ void BIO_free_all(BIO *a);
560
+ BIO *BIO_find_type(BIO *b, int bio_type);
561
+ BIO *BIO_next(BIO *b);
562
+ void BIO_set_next(BIO *b, BIO *next);
563
+ BIO *BIO_get_retry_BIO(BIO *bio, int *reason);
564
+ int BIO_get_retry_reason(BIO *bio);
565
+ void BIO_set_retry_reason(BIO *bio, int reason);
566
+ BIO *BIO_dup_chain(BIO *in);
567
+
568
+ int BIO_nread0(BIO *bio, char **buf);
569
+ int BIO_nread(BIO *bio, char **buf, int num);
570
+ int BIO_nwrite0(BIO *bio, char **buf);
571
+ int BIO_nwrite(BIO *bio, char **buf, int num);
572
+
573
+ long BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi,
574
+ long argl, long ret);
575
+
576
+ const BIO_METHOD *BIO_s_mem(void);
577
+ const BIO_METHOD *BIO_s_secmem(void);
578
+ BIO *BIO_new_mem_buf(const void *buf, int len);
579
+ # ifndef OPENSSL_NO_SOCK
580
+ const BIO_METHOD *BIO_s_socket(void);
581
+ const BIO_METHOD *BIO_s_connect(void);
582
+ const BIO_METHOD *BIO_s_accept(void);
583
+ # endif
584
+ const BIO_METHOD *BIO_s_fd(void);
585
+ const BIO_METHOD *BIO_s_log(void);
586
+ const BIO_METHOD *BIO_s_bio(void);
587
+ const BIO_METHOD *BIO_s_null(void);
588
+ const BIO_METHOD *BIO_f_null(void);
589
+ const BIO_METHOD *BIO_f_buffer(void);
590
+ const BIO_METHOD *BIO_f_linebuffer(void);
591
+ const BIO_METHOD *BIO_f_nbio_test(void);
592
+ # ifndef OPENSSL_NO_DGRAM
593
+ const BIO_METHOD *BIO_s_datagram(void);
594
+ int BIO_dgram_non_fatal_error(int error);
595
+ BIO *BIO_new_dgram(int fd, int close_flag);
596
+ # ifndef OPENSSL_NO_SCTP
597
+ const BIO_METHOD *BIO_s_datagram_sctp(void);
598
+ BIO *BIO_new_dgram_sctp(int fd, int close_flag);
599
+ int BIO_dgram_is_sctp(BIO *bio);
600
+ int BIO_dgram_sctp_notification_cb(BIO *b,
601
+ void (*handle_notifications) (BIO *bio,
602
+ void *context,
603
+ void *buf),
604
+ void *context);
605
+ int BIO_dgram_sctp_wait_for_dry(BIO *b);
606
+ int BIO_dgram_sctp_msg_waiting(BIO *b);
607
+ # endif
608
+ # endif
609
+
610
+ # ifndef OPENSSL_NO_SOCK
611
+ int BIO_sock_should_retry(int i);
612
+ int BIO_sock_non_fatal_error(int error);
613
+ # endif
614
+
615
+ int BIO_fd_should_retry(int i);
616
+ int BIO_fd_non_fatal_error(int error);
617
+ int BIO_dump_cb(int (*cb) (const void *data, size_t len, void *u),
618
+ void *u, const char *s, int len);
619
+ int BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u),
620
+ void *u, const char *s, int len, int indent);
621
+ int BIO_dump(BIO *b, const char *bytes, int len);
622
+ int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent);
623
+ # ifndef OPENSSL_NO_STDIO
624
+ int BIO_dump_fp(FILE *fp, const char *s, int len);
625
+ int BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent);
626
+ # endif
627
+ int BIO_hex_string(BIO *out, int indent, int width, unsigned char *data,
628
+ int datalen);
629
+
630
+ # ifndef OPENSSL_NO_SOCK
631
+ BIO_ADDR *BIO_ADDR_new(void);
632
+ int BIO_ADDR_rawmake(BIO_ADDR *ap, int family,
633
+ const void *where, size_t wherelen, unsigned short port);
634
+ void BIO_ADDR_free(BIO_ADDR *);
635
+ void BIO_ADDR_clear(BIO_ADDR *ap);
636
+ int BIO_ADDR_family(const BIO_ADDR *ap);
637
+ int BIO_ADDR_rawaddress(const BIO_ADDR *ap, void *p, size_t *l);
638
+ unsigned short BIO_ADDR_rawport(const BIO_ADDR *ap);
639
+ char *BIO_ADDR_hostname_string(const BIO_ADDR *ap, int numeric);
640
+ char *BIO_ADDR_service_string(const BIO_ADDR *ap, int numeric);
641
+ char *BIO_ADDR_path_string(const BIO_ADDR *ap);
642
+
643
+ const BIO_ADDRINFO *BIO_ADDRINFO_next(const BIO_ADDRINFO *bai);
644
+ int BIO_ADDRINFO_family(const BIO_ADDRINFO *bai);
645
+ int BIO_ADDRINFO_socktype(const BIO_ADDRINFO *bai);
646
+ int BIO_ADDRINFO_protocol(const BIO_ADDRINFO *bai);
647
+ const BIO_ADDR *BIO_ADDRINFO_address(const BIO_ADDRINFO *bai);
648
+ void BIO_ADDRINFO_free(BIO_ADDRINFO *bai);
649
+
650
+ enum BIO_hostserv_priorities {
651
+ BIO_PARSE_PRIO_HOST, BIO_PARSE_PRIO_SERV
652
+ };
653
+ int BIO_parse_hostserv(const char *hostserv, char **host, char **service,
654
+ enum BIO_hostserv_priorities hostserv_prio);
655
+ enum BIO_lookup_type {
656
+ BIO_LOOKUP_CLIENT, BIO_LOOKUP_SERVER
657
+ };
658
+ int BIO_lookup(const char *host, const char *service,
659
+ enum BIO_lookup_type lookup_type,
660
+ int family, int socktype, BIO_ADDRINFO **res);
661
+ int BIO_sock_error(int sock);
662
+ int BIO_socket_ioctl(int fd, long type, void *arg);
663
+ int BIO_socket_nbio(int fd, int mode);
664
+ int BIO_sock_init(void);
665
+ # if OPENSSL_API_COMPAT < 0x10100000L
666
+ # define BIO_sock_cleanup() while(0) continue
667
+ # endif
668
+ int BIO_set_tcp_ndelay(int sock, int turn_on);
669
+
670
+ DEPRECATEDIN_1_1_0(struct hostent *BIO_gethostbyname(const char *name))
671
+ DEPRECATEDIN_1_1_0(int BIO_get_port(const char *str, unsigned short *port_ptr))
672
+ DEPRECATEDIN_1_1_0(int BIO_get_host_ip(const char *str, unsigned char *ip))
673
+ DEPRECATEDIN_1_1_0(int BIO_get_accept_socket(char *host_port, int mode))
674
+ DEPRECATEDIN_1_1_0(int BIO_accept(int sock, char **ip_port))
675
+
676
+ union BIO_sock_info_u {
677
+ BIO_ADDR *addr;
678
+ };
679
+ enum BIO_sock_info_type {
680
+ BIO_SOCK_INFO_ADDRESS
681
+ };
682
+ int BIO_sock_info(int sock,
683
+ enum BIO_sock_info_type type, union BIO_sock_info_u *info);
684
+
685
+ # define BIO_SOCK_REUSEADDR 0x01
686
+ # define BIO_SOCK_V6_ONLY 0x02
687
+ # define BIO_SOCK_KEEPALIVE 0x04
688
+ # define BIO_SOCK_NONBLOCK 0x08
689
+ # define BIO_SOCK_NODELAY 0x10
690
+
691
+ int BIO_socket(int domain, int socktype, int protocol, int options);
692
+ int BIO_connect(int sock, const BIO_ADDR *addr, int options);
693
+ int BIO_listen(int sock, const BIO_ADDR *addr, int options);
694
+ int BIO_accept_ex(int accept_sock, BIO_ADDR *addr, int options);
695
+ int BIO_closesocket(int sock);
696
+
697
+ BIO *BIO_new_socket(int sock, int close_flag);
698
+ BIO *BIO_new_connect(const char *host_port);
699
+ BIO *BIO_new_accept(const char *host_port);
700
+ # endif /* OPENSSL_NO_SOCK*/
701
+
702
+ BIO *BIO_new_fd(int fd, int close_flag);
703
+
704
+ int BIO_new_bio_pair(BIO **bio1, size_t writebuf1,
705
+ BIO **bio2, size_t writebuf2);
706
+ /*
707
+ * If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints.
708
+ * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. Size 0 uses default
709
+ * value.
710
+ */
711
+
712
+ void BIO_copy_next_retry(BIO *b);
713
+
714
+ /*
715
+ * long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);
716
+ */
717
+
718
+ # ifdef __GNUC__
719
+ # define __bio_h__attr__ __attribute__
720
+ # else
721
+ # define __bio_h__attr__(x)
722
+ # endif
723
+ int BIO_printf(BIO *bio, const char *format, ...)
724
+ __bio_h__attr__((__format__(__printf__, 2, 3)));
725
+ int BIO_vprintf(BIO *bio, const char *format, va_list args)
726
+ __bio_h__attr__((__format__(__printf__, 2, 0)));
727
+ int BIO_snprintf(char *buf, size_t n, const char *format, ...)
728
+ __bio_h__attr__((__format__(__printf__, 3, 4)));
729
+ int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
730
+ __bio_h__attr__((__format__(__printf__, 3, 0)));
731
+ # undef __bio_h__attr__
732
+
733
+
734
+ BIO_METHOD *BIO_meth_new(int type, const char *name);
735
+ void BIO_meth_free(BIO_METHOD *biom);
736
+ int (*BIO_meth_get_write(BIO_METHOD *biom)) (BIO *, const char *, int);
737
+ int BIO_meth_set_write(BIO_METHOD *biom,
738
+ int (*write) (BIO *, const char *, int));
739
+ int (*BIO_meth_get_read(BIO_METHOD *biom)) (BIO *, char *, int);
740
+ int BIO_meth_set_read(BIO_METHOD *biom,
741
+ int (*read) (BIO *, char *, int));
742
+ int (*BIO_meth_get_puts(BIO_METHOD *biom)) (BIO *, const char *);
743
+ int BIO_meth_set_puts(BIO_METHOD *biom,
744
+ int (*puts) (BIO *, const char *));
745
+ int (*BIO_meth_get_gets(BIO_METHOD *biom)) (BIO *, char *, int);
746
+ int BIO_meth_set_gets(BIO_METHOD *biom,
747
+ int (*gets) (BIO *, char *, int));
748
+ long (*BIO_meth_get_ctrl(BIO_METHOD *biom)) (BIO *, int, long, void *);
749
+ int BIO_meth_set_ctrl(BIO_METHOD *biom,
750
+ long (*ctrl) (BIO *, int, long, void *));
751
+ int (*BIO_meth_get_create(BIO_METHOD *bion)) (BIO *);
752
+ int BIO_meth_set_create(BIO_METHOD *biom, int (*create) (BIO *));
753
+ int (*BIO_meth_get_destroy(BIO_METHOD *biom)) (BIO *);
754
+ int BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy) (BIO *));
755
+ long (*BIO_meth_get_callback_ctrl(BIO_METHOD *biom))
756
+ (BIO *, int, bio_info_cb *);
757
+ int BIO_meth_set_callback_ctrl(BIO_METHOD *biom,
758
+ long (*callback_ctrl) (BIO *, int,
759
+ bio_info_cb *));
760
+
761
+ /* BEGIN ERROR CODES */
762
+ /*
763
+ * The following lines are auto generated by the script mkerr.pl. Any changes
764
+ * made after this point may be overwritten when the script is next run.
765
+ */
766
+
767
+ int ERR_load_BIO_strings(void);
768
+
769
+ /* Error codes for the BIO functions. */
770
+
771
+ /* Function codes. */
772
+ # define BIO_F_ACPT_STATE 100
773
+ # define BIO_F_ADDR_STRINGS 134
774
+ # define BIO_F_BIO_ACCEPT 101
775
+ # define BIO_F_BIO_ACCEPT_EX 137
776
+ # define BIO_F_BIO_ADDR_NEW 144
777
+ # define BIO_F_BIO_CALLBACK_CTRL 131
778
+ # define BIO_F_BIO_CONNECT 138
779
+ # define BIO_F_BIO_CTRL 103
780
+ # define BIO_F_BIO_GETS 104
781
+ # define BIO_F_BIO_GET_HOST_IP 106
782
+ # define BIO_F_BIO_GET_NEW_INDEX 102
783
+ # define BIO_F_BIO_GET_PORT 107
784
+ # define BIO_F_BIO_LISTEN 139
785
+ # define BIO_F_BIO_LOOKUP 135
786
+ # define BIO_F_BIO_MAKE_PAIR 121
787
+ # define BIO_F_BIO_NEW 108
788
+ # define BIO_F_BIO_NEW_FILE 109
789
+ # define BIO_F_BIO_NEW_MEM_BUF 126
790
+ # define BIO_F_BIO_NREAD 123
791
+ # define BIO_F_BIO_NREAD0 124
792
+ # define BIO_F_BIO_NWRITE 125
793
+ # define BIO_F_BIO_NWRITE0 122
794
+ # define BIO_F_BIO_PARSE_HOSTSERV 136
795
+ # define BIO_F_BIO_PUTS 110
796
+ # define BIO_F_BIO_READ 111
797
+ # define BIO_F_BIO_SOCKET 140
798
+ # define BIO_F_BIO_SOCKET_NBIO 142
799
+ # define BIO_F_BIO_SOCK_INFO 141
800
+ # define BIO_F_BIO_SOCK_INIT 112
801
+ # define BIO_F_BIO_WRITE 113
802
+ # define BIO_F_BUFFER_CTRL 114
803
+ # define BIO_F_CONN_CTRL 127
804
+ # define BIO_F_CONN_STATE 115
805
+ # define BIO_F_DGRAM_SCTP_READ 132
806
+ # define BIO_F_DGRAM_SCTP_WRITE 133
807
+ # define BIO_F_FILE_CTRL 116
808
+ # define BIO_F_FILE_READ 130
809
+ # define BIO_F_LINEBUFFER_CTRL 129
810
+ # define BIO_F_MEM_WRITE 117
811
+ # define BIO_F_SSL_NEW 118
812
+
813
+ /* Reason codes. */
814
+ # define BIO_R_ACCEPT_ERROR 100
815
+ # define BIO_R_ADDRINFO_ADDR_IS_NOT_AF_INET 141
816
+ # define BIO_R_AMBIGUOUS_HOST_OR_SERVICE 129
817
+ # define BIO_R_BAD_FOPEN_MODE 101
818
+ # define BIO_R_BROKEN_PIPE 124
819
+ # define BIO_R_CONNECT_ERROR 103
820
+ # define BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET 107
821
+ # define BIO_R_GETSOCKNAME_ERROR 132
822
+ # define BIO_R_GETSOCKNAME_TRUNCATED_ADDRESS 133
823
+ # define BIO_R_GETTING_SOCKTYPE 134
824
+ # define BIO_R_INVALID_ARGUMENT 125
825
+ # define BIO_R_INVALID_SOCKET 135
826
+ # define BIO_R_IN_USE 123
827
+ # define BIO_R_LISTEN_V6_ONLY 136
828
+ # define BIO_R_LOOKUP_RETURNED_NOTHING 142
829
+ # define BIO_R_MALFORMED_HOST_OR_SERVICE 130
830
+ # define BIO_R_NBIO_CONNECT_ERROR 110
831
+ # define BIO_R_NO_ACCEPT_ADDR_OR_SERVICE_SPECIFIED 143
832
+ # define BIO_R_NO_HOSTNAME_OR_SERVICE_SPECIFIED 144
833
+ # define BIO_R_NO_PORT_DEFINED 113
834
+ # define BIO_R_NO_SUCH_FILE 128
835
+ # define BIO_R_NULL_PARAMETER 115
836
+ # define BIO_R_UNABLE_TO_BIND_SOCKET 117
837
+ # define BIO_R_UNABLE_TO_CREATE_SOCKET 118
838
+ # define BIO_R_UNABLE_TO_KEEPALIVE 137
839
+ # define BIO_R_UNABLE_TO_LISTEN_SOCKET 119
840
+ # define BIO_R_UNABLE_TO_NODELAY 138
841
+ # define BIO_R_UNABLE_TO_REUSEADDR 139
842
+ # define BIO_R_UNAVAILABLE_IP_FAMILY 145
843
+ # define BIO_R_UNINITIALIZED 120
844
+ # define BIO_R_UNKNOWN_INFO_TYPE 140
845
+ # define BIO_R_UNSUPPORTED_IP_FAMILY 146
846
+ # define BIO_R_UNSUPPORTED_METHOD 121
847
+ # define BIO_R_UNSUPPORTED_PROTOCOL_FAMILY 131
848
+ # define BIO_R_WRITE_TO_READ_ONLY_BIO 126
849
+ # define BIO_R_WSASTARTUP 122
850
+
851
+ # ifdef __cplusplus
852
+ }
853
+ # endif
854
+ #endif