daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 163 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Compile with NDK the OpenVPN code modified by FeatVPN
  2. $ D:/NDK/android-ndk-r7c/ndk-build
  3. Cygwin         : Generating dependency file converter script
  4. Compile thumb  : openvpn <= base64.c
  5. Compile thumb  : openvpn <= buffer.c
  6. Compile thumb  : openvpn <= crypto.c
  7. In file included from openvpn/crypto.h:40,
  8.                  from openvpn/crypto.c:29:
  9. openssl/include/openssl/objects.h:1: error: expected identifier or '(' before '.' token
  10. In file included from openvpn/crypto.h:61,
  11.                  from openvpn/crypto.c:29:
  12. openvpn/buffer.h:80: warning: 'struct buffer' declared inside parameter list
  13. openvpn/buffer.h:80: warning: its scope is only this definition or declaration, which is probably not what you want
  14. openvpn/buffer.h: In function 'buf_defined':
  15. openvpn/buffer.h:139: error: dereferencing pointer to incomplete type
  16. openvpn/buffer.h: In function 'buf_valid':
  17. openvpn/buffer.h:145: error: dereferencing pointer to incomplete type
  18. openvpn/buffer.h:145: error: dereferencing pointer to incomplete type
  19. openvpn/buffer.h: In function 'buf_bptr':
  20. openvpn/buffer.h:152: error: dereferencing pointer to incomplete type
  21. openvpn/buffer.h:152: error: dereferencing pointer to incomplete type
  22. openvpn/buffer.h: In function 'buf_len':
  23. openvpn/buffer.h:161: error: dereferencing pointer to incomplete type
  24. openvpn/buffer.h: In function 'buf_reset':
  25. openvpn/buffer.h:202: error: dereferencing pointer to incomplete type
  26. openvpn/buffer.h:203: error: dereferencing pointer to incomplete type
  27. openvpn/buffer.h:204: error: dereferencing pointer to incomplete type
  28. openvpn/buffer.h:205: error: dereferencing pointer to incomplete type
  29. openvpn/buffer.h: In function 'buf_reset_len':
  30. openvpn/buffer.h:211: error: dereferencing pointer to incomplete type
  31. openvpn/buffer.h:212: error: dereferencing pointer to incomplete type
  32. openvpn/buffer.h: In function 'buf_init_dowork':
  33. openvpn/buffer.h:218: error: dereferencing pointer to incomplete type
  34. openvpn/buffer.h:218: error: dereferencing pointer to incomplete type
  35. openvpn/buffer.h:220: error: dereferencing pointer to incomplete type
  36. openvpn/buffer.h:221: error: dereferencing pointer to incomplete type
  37. openvpn/buffer.h: In function 'buf_set_write':
  38. openvpn/buffer.h:230: error: dereferencing pointer to incomplete type
  39. openvpn/buffer.h:231: error: dereferencing pointer to incomplete type
  40. openvpn/buffer.h:232: error: dereferencing pointer to incomplete type
  41. openvpn/buffer.h:233: error: dereferencing pointer to incomplete type
  42. openvpn/buffer.h: In function 'buf_set_read':
  43. openvpn/buffer.h:243: error: dereferencing pointer to incomplete type
  44. openvpn/buffer.h:243: error: dereferencing pointer to incomplete type
  45. openvpn/buffer.h:244: error: dereferencing pointer to incomplete type
  46. openvpn/buffer.h:245: error: dereferencing pointer to incomplete type
  47. openvpn/buffer.h: In function 'buf_safe':
  48. openvpn/buffer.h:353: error: dereferencing pointer to incomplete type
  49. openvpn/buffer.h:353: error: dereferencing pointer to incomplete type
  50. openvpn/buffer.h:353: error: dereferencing pointer to incomplete type
  51. openvpn/buffer.h: In function 'buf_safe_bidir':
  52. openvpn/buffer.h:361: error: dereferencing pointer to incomplete type
  53. openvpn/buffer.h:362: error: dereferencing pointer to incomplete type
  54. openvpn/buffer.h:362: error: dereferencing pointer to incomplete type
  55. openvpn/buffer.h: In function 'buf_forward_capacity':
  56. openvpn/buffer.h:373: error: dereferencing pointer to incomplete type
  57. openvpn/buffer.h:373: error: dereferencing pointer to incomplete type
  58. openvpn/buffer.h:373: error: dereferencing pointer to incomplete type
  59. openvpn/buffer.h: In function 'buf_forward_capacity_total':
  60. openvpn/buffer.h:387: error: dereferencing pointer to incomplete type
  61. openvpn/buffer.h:387: error: dereferencing pointer to incomplete type
  62. openvpn/buffer.h: In function 'buf_reverse_capacity':
  63. openvpn/buffer.h:400: error: dereferencing pointer to incomplete type
  64. openvpn/buffer.h: In function 'buf_inc_len':
  65. openvpn/buffer.h:410: error: dereferencing pointer to incomplete type
  66. openvpn/buffer.h: In function 'buf_prepend':
  67. openvpn/buffer.h:422: error: dereferencing pointer to incomplete type
  68. openvpn/buffer.h:424: error: dereferencing pointer to incomplete type
  69. openvpn/buffer.h:425: error: dereferencing pointer to incomplete type
  70. openvpn/buffer.h: In function 'buf_advance':
  71. openvpn/buffer.h:432: error: dereferencing pointer to incomplete type
  72. openvpn/buffer.h:434: error: dereferencing pointer to incomplete type
  73. openvpn/buffer.h:435: error: dereferencing pointer to incomplete type
  74. openvpn/buffer.h: In function 'buf_write_alloc':
  75. openvpn/buffer.h:450: error: dereferencing pointer to incomplete type
  76. openvpn/buffer.h:451: error: dereferencing pointer to incomplete type
  77. openvpn/buffer.h: In function 'buf_read_alloc':
  78. openvpn/buffer.h:465: error: dereferencing pointer to incomplete type
  79. openvpn/buffer.h:468: error: dereferencing pointer to incomplete type
  80. openvpn/buffer.h:469: error: dereferencing pointer to incomplete type
  81. openvpn/buffer.h: In function 'buf_copy_range':
  82. openvpn/buffer.h:538: error: dereferencing pointer to incomplete type
  83. openvpn/buffer.h:540: error: dereferencing pointer to incomplete type
  84. openvpn/buffer.h:540: error: dereferencing pointer to incomplete type
  85. openvpn/buffer.h:542: error: dereferencing pointer to incomplete type
  86. openvpn/buffer.h:542: error: dereferencing pointer to incomplete type
  87. openvpn/buffer.h:542: error: dereferencing pointer to incomplete type
  88. openvpn/buffer.h:542: error: dereferencing pointer to incomplete type
  89. openvpn/buffer.h:543: error: dereferencing pointer to incomplete type
  90. openvpn/buffer.h:544: error: dereferencing pointer to incomplete type
  91. openvpn/buffer.h: In function 'buf_copy_excess':
  92. openvpn/buffer.h:556: error: dereferencing pointer to incomplete type
  93. openvpn/buffer.h:558: error: variable 'b' has initializer but incomplete type
  94. openvpn/buffer.h:558: error: dereferencing pointer to incomplete type
  95. openvpn/buffer.h:558: error: storage size of 'b' isn't known
  96. openvpn/buffer.h:559: error: dereferencing pointer to incomplete type
  97. openvpn/buffer.h:558: warning: unused variable 'b'
  98. openvpn/buffer.h: In function 'buf_string_match':
  99. openvpn/buffer.h:621: error: dereferencing pointer to incomplete type
  100. openvpn/buffer.h: In function 'buf_string_match_head':
  101. openvpn/buffer.h:629: error: dereferencing pointer to incomplete type
  102. openvpn/buffer.h: At top level:
  103. openvpn/buffer.h:834: error: field 'buf' has incomplete type
  104. In file included from openvpn/crypto.c:29:
  105. openvpn/crypto.h:110: error: expected ')' before '*' token
  106. openvpn/crypto.h:117: error: expected ')' before '*' token
  107. openvpn/crypto.h:198: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
  108. openvpn/crypto.h:240: error: expected specifier-qualifier-list before 'EVP_CIPHER_CTX'
  109. openvpn/crypto.h:282: warning: type defaults to 'int' in declaration of 'EVP_MD'
  110. openvpn/crypto.h:282: error: expected ';', ',' or ')' before '*' token
  111. openvpn/crypto.h: In function 'key_ctx_bi_defined':
  112. openvpn/crypto.h:398: error: 'const struct key_ctx' has no member named 'cipher'
  113. openvpn/crypto.h:398: error: 'const struct key_ctx' has no member named 'hmac'
  114. openvpn/crypto.h:398: error: 'const struct key_ctx' has no member named 'cipher'
  115. openvpn/crypto.h:398: error: 'const struct key_ctx' has no member named 'hmac'
  116. openvpn/crypto.h: At top level:
  117. openvpn/crypto.h:406: error: expected specifier-qualifier-list before 'MD5_CTX'
  118. openvpn/crypto.h:410: error: 'MD5_DIGEST_LENGTH' undeclared here (not in a function)
  119. openvpn/crypto.c:74: error: parameter 2 ('work') has incomplete type
  120. openvpn/crypto.c: In function 'openvpn_encrypt':
  121. openvpn/crypto.c:81: error: dereferencing pointer to incomplete type
  122. openvpn/crypto.c:86: error: 'struct key_ctx' has no member named 'cipher'
  123. openvpn/crypto.c:88: error: 'EVP_MAX_IV_LENGTH' undeclared (first use in this function)
  124. openvpn/crypto.c:88: error: (Each undeclared identifier is reported only once
  125. openvpn/crypto.c:88: error: for each function it appears in.)
  126. openvpn/crypto.c:89: warning: implicit declaration of function 'EVP_CIPHER_CTX_iv_length'
  127. openvpn/crypto.c:89: error: 'struct key_ctx' has no member named 'cipher'
  128. openvpn/crypto.c:112: error: storage size of 'b' isn't known
  129. openvpn/crypto.c:112: warning: unused variable 'b'
  130. openvpn/crypto.c:138: warning: implicit declaration of function 'EVP_CipherInit_ov'
  131. openvpn/crypto.c:138: error: 'struct key_ctx' has no member named 'cipher'
  132. openvpn/crypto.c:141: error: dereferencing pointer to incomplete type
  133. openvpn/crypto.c:141: warning: implicit declaration of function 'EVP_CIPHER_CTX_block_size'
  134. openvpn/crypto.c:141: error: 'struct key_ctx' has no member named 'cipher'
  135. openvpn/crypto.c:143: error: dereferencing pointer to incomplete type
  136. openvpn/crypto.c:143: error: dereferencing pointer to incomplete type
  137. openvpn/crypto.c:143: error: dereferencing pointer to incomplete type
  138. openvpn/crypto.c:143: error: 'struct key_ctx' has no member named 'cipher'
  139. openvpn/crypto.c:155: warning: implicit declaration of function 'EVP_CipherUpdate_ov'
  140. openvpn/crypto.c:155: error: 'struct key_ctx' has no member named 'cipher'
  141. openvpn/crypto.c:159: warning: implicit declaration of function 'EVP_CipherFinal'
  142. openvpn/crypto.c:159: error: 'struct key_ctx' has no member named 'cipher'
  143. openvpn/crypto.c:88: warning: unused variable 'iv_buf'
  144. openvpn/crypto.c:182: error: dereferencing pointer to incomplete type
  145. openvpn/crypto.c:186: error: 'struct key_ctx' has no member named 'hmac'
  146. openvpn/crypto.c:191: warning: implicit declaration of function 'HMAC_Init'
  147. openvpn/crypto.c:191: error: 'struct key_ctx' has no member named 'hmac'
  148. openvpn/crypto.c:192: warning: implicit declaration of function 'HMAC_Update'
  149. openvpn/crypto.c:192: error: 'struct key_ctx' has no member named 'hmac'
  150. openvpn/crypto.c:193: warning: implicit declaration of function 'HMAC_size'
  151. openvpn/crypto.c:193: error: 'struct key_ctx' has no member named 'hmac'
  152. openvpn/crypto.c:195: warning: implicit declaration of function 'HMAC_Final'
  153. openvpn/crypto.c:195: error: 'struct key_ctx' has no member named 'hmac'
  154. openvpn/crypto.c:196: error: 'struct key_ctx' has no member named 'hmac'
  155. openvpn/crypto.c:199: error: dereferencing pointer to incomplete type
  156. openvpn/crypto.c:206: warning: implicit declaration of function 'ERR_clear_error'
  157. openvpn/crypto.c:207: error: dereferencing pointer to incomplete type
  158. openvpn/crypto.c: At top level:
  159. openvpn/crypto.c:221: error: parameter 2 ('work') has incomplete type
  160. openvpn/crypto.c: In function 'openvpn_decrypt':
  161. openvpn/crypto.c:229: error: dereferencing pointer to incomplete type
  162. openvpn/crypto.c:236: error: 'struct key_ctx' has no member named 'hmac'
  163. openvpn/crypto.c:242: error: 'struct key_ctx' has no member named 'hmac'
  164. openvpn/crypto.c:245: error: 'struct key_ctx' has no member named 'hmac'
  165. openvpn/crypto.c:248: error: dereferencing pointer to incomplete type
  166. openvpn/crypto.c:251: error: 'struct key_ctx' has no member named 'hmac'
  167. openvpn/crypto.c:253: error: 'struct key_ctx' has no member named 'hmac'
  168. openvpn/crypto.c:265: error: 'struct key_ctx' has no member named 'cipher'
  169. openvpn/crypto.c:268: error: 'struct key_ctx' has no member named 'cipher'
  170. openvpn/crypto.c:269: error: 'EVP_MAX_IV_LENGTH' undeclared (first use in this function)
  171. openvpn/crypto.c:279: error: dereferencing pointer to incomplete type
  172. openvpn/crypto.c:289: error: dereferencing pointer to incomplete type
  173. openvpn/crypto.c:293: error: 'struct key_ctx' has no member named 'cipher'
  174. openvpn/crypto.c:297: error: dereferencing pointer to incomplete type
  175. openvpn/crypto.c:301: error: 'struct key_ctx' has no member named 'cipher'
  176. openvpn/crypto.c:306: error: 'struct key_ctx' has no member named 'cipher'
  177. openvpn/crypto.c:326: error: storage size of 'b' isn't known
  178. openvpn/crypto.c:326: warning: unused variable 'b'
  179. openvpn/crypto.c:269: warning: unused variable 'iv_buf'
  180. openvpn/crypto.c:344: error: dereferencing pointer to incomplete type
  181. openvpn/crypto.c:370: error: dereferencing pointer to incomplete type
  182. openvpn/crypto.c:378: error: dereferencing pointer to incomplete type
  183. openvpn/crypto.c: In function 'crypto_adjust_frame_parameters':
  184. openvpn/crypto.c:397: warning: implicit declaration of function 'EVP_CIPHER_iv_length'
  185. openvpn/crypto.c:397: error: 'const struct key_type' has no member named 'cipher'
  186. openvpn/crypto.c:398: warning: implicit declaration of function 'EVP_CIPHER_block_size'
  187. openvpn/crypto.c:398: error: 'const struct key_type' has no member named 'cipher'
  188. openvpn/crypto.c: At top level:
  189. openvpn/crypto.c:402: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  190. openvpn/crypto.c:418: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  191. openvpn/crypto.c:435: error: expected ')' before '*' token
  192. openvpn/crypto.c:470: error: expected ')' before '*' token
  193. openvpn/crypto.c: In function 'init_key_type':
  194. openvpn/crypto.c:506: error: 'struct key_type' has no member named 'cipher'
  195. openvpn/crypto.c:506: warning: implicit declaration of function 'get_cipher'
  196. openvpn/crypto.c:507: warning: implicit declaration of function 'EVP_CIPHER_key_length'
  197. openvpn/crypto.c:507: error: 'struct key_type' has no member named 'cipher'
  198. openvpn/crypto.c:533: error: 'struct key_type' has no member named 'digest'
  199. openvpn/crypto.c:533: warning: implicit declaration of function 'get_md'
  200. openvpn/crypto.c:534: warning: implicit declaration of function 'EVP_MD_size'
  201. openvpn/crypto.c:534: error: 'struct key_type' has no member named 'digest'
  202. openvpn/crypto.c: In function 'kt_cipher_name':
  203. openvpn/crypto.c:546: error: 'const struct key_type' has no member named 'cipher'
  204. openvpn/crypto.c:547: warning: implicit declaration of function 'OBJ_nid2sn'
  205. openvpn/crypto.c:547: warning: implicit declaration of function 'EVP_CIPHER_nid'
  206. openvpn/crypto.c:547: error: 'const struct key_type' has no member named 'cipher'
  207. openvpn/crypto.c: In function 'kt_digest_name':
  208. openvpn/crypto.c:555: error: 'const struct key_type' has no member named 'digest'
  209. openvpn/crypto.c:556: warning: implicit declaration of function 'EVP_MD_type'
  210. openvpn/crypto.c:556: error: 'const struct key_type' has no member named 'digest'
  211. openvpn/crypto.c: In function 'kt_key_size':
  212. openvpn/crypto.c:566: error: 'const struct key_type' has no member named 'cipher'
  213. openvpn/crypto.c:567: error: 'const struct key_type' has no member named 'cipher'
  214. openvpn/crypto.c: In function 'init_key_ctx':
  215. openvpn/crypto.c:579: error: 'const struct key_type' has no member named 'cipher'
  216. openvpn/crypto.c:581: error: 'struct key_ctx' has no member named 'cipher'
  217. openvpn/crypto.c:581: error: 'EVP_CIPHER_CTX' undeclared (first use in this function)
  218. openvpn/crypto.c:581: error: expected expression before ')' token
  219. openvpn/crypto.c:582: warning: implicit declaration of function 'init_cipher'
  220. openvpn/crypto.c:582: error: 'struct key_ctx' has no member named 'cipher'
  221. openvpn/crypto.c:582: error: 'const struct key_type' has no member named 'cipher'
  222. openvpn/crypto.c:584: error: 'const struct key_type' has no member named 'digest'
  223. openvpn/crypto.c:586: error: 'struct key_ctx' has no member named 'hmac'
  224. openvpn/crypto.c:586: error: 'HMAC_CTX' undeclared (first use in this function)
  225. openvpn/crypto.c:586: error: expected expression before ')' token
  226. openvpn/crypto.c:587: warning: implicit declaration of function 'init_hmac'
  227. openvpn/crypto.c:587: error: 'struct key_ctx' has no member named 'hmac'
  228. openvpn/crypto.c:587: error: 'const struct key_type' has no member named 'digest'
  229. openvpn/crypto.c: In function 'free_key_ctx':
  230. openvpn/crypto.c:594: error: 'struct key_ctx' has no member named 'cipher'
  231. openvpn/crypto.c:596: warning: implicit declaration of function 'EVP_CIPHER_CTX_cleanup'
  232. openvpn/crypto.c:596: error: 'struct key_ctx' has no member named 'cipher'
  233. openvpn/crypto.c:597: error: 'struct key_ctx' has no member named 'cipher'
  234. openvpn/crypto.c:598: error: 'struct key_ctx' has no member named 'cipher'
  235. openvpn/crypto.c:600: error: 'struct key_ctx' has no member named 'hmac'
  236. openvpn/crypto.c:602: warning: implicit declaration of function 'HMAC_cleanup'
  237. openvpn/crypto.c:602: error: 'struct key_ctx' has no member named 'hmac'
  238. openvpn/crypto.c:603: error: 'struct key_ctx' has no member named 'hmac'
  239. openvpn/crypto.c:604: error: 'struct key_ctx' has no member named 'hmac'
  240. openvpn/crypto.c: In function 'n_DES_cblocks':
  241. openvpn/crypto.c:623: error: 'const struct key_type' has no member named 'cipher'
  242. openvpn/crypto.c:628: error: 'const struct key_type' has no member named 'cipher'
  243. openvpn/crypto.c:628: error: 'des_cblock' undeclared (first use in this function)
  244. openvpn/crypto.c: In function 'check_key_DES':
  245. openvpn/crypto.c:643: error: storage size of 'b' isn't known
  246. openvpn/crypto.c:649: error: 'des_cblock' undeclared (first use in this function)
  247. openvpn/crypto.c:649: error: 'dc' undeclared (first use in this function)
  248. openvpn/crypto.c:649: error: expected expression before ')' token
  249. openvpn/crypto.c:655: warning: implicit declaration of function 'des_is_weak_key'
  250. openvpn/crypto.c:643: warning: unused variable 'b'
  251. openvpn/crypto.c: In function 'fixup_key_DES':
  252. openvpn/crypto.c:677: error: storage size of 'b' isn't known
  253. openvpn/crypto.c:682: error: 'des_cblock' undeclared (first use in this function)
  254. openvpn/crypto.c:682: error: 'dc' undeclared (first use in this function)
  255. openvpn/crypto.c:682: error: expected expression before ')' token
  256. openvpn/crypto.c:689: warning: implicit declaration of function 'des_set_odd_parity'
  257. openvpn/crypto.c:677: warning: unused variable 'b'
  258. openvpn/crypto.c: In function 'check_key':
  259. openvpn/crypto.c:710: error: 'const struct key_type' has no member named 'cipher'
  260. openvpn/crypto.c: In function 'fixup_key':
  261. openvpn/crypto.c:744: error: 'const struct key_type' has no member named 'cipher'
  262. openvpn/crypto.c: In function 'cfb_ofb_mode':
  263. openvpn/crypto.c:777: error: 'const struct key_type' has no member named 'cipher'
  264. openvpn/crypto.c: In function 'generate_key_random':
  265. openvpn/crypto.c:800: error: 'const struct key_type' has no member named 'cipher'
  266. openvpn/crypto.c:803: error: 'const struct key_type' has no member named 'digest'
  267. openvpn/crypto.c:806: warning: implicit declaration of function 'RAND_bytes'
  268. openvpn/crypto.c: In function 'test_crypto':
  269. openvpn/crypto.c:851: error: variable 'src' has initializer but incomplete type
  270. openvpn/crypto.c:851: error: invalid use of undefined type 'struct buffer'
  271. openvpn/crypto.c:851: error: storage size of 'src' isn't known
  272. openvpn/crypto.c:852: error: variable 'work' has initializer but incomplete type
  273. openvpn/crypto.c:852: error: invalid use of undefined type 'struct buffer'
  274. openvpn/crypto.c:852: error: storage size of 'work' isn't known
  275. openvpn/crypto.c:853: error: variable 'encrypt_workspace' has initializer but incomplete type
  276. openvpn/crypto.c:853: error: invalid use of undefined type 'struct buffer'
  277. openvpn/crypto.c:853: error: storage size of 'encrypt_workspace' isn't known
  278. openvpn/crypto.c:854: error: variable 'decrypt_workspace' has initializer but incomplete type
  279. openvpn/crypto.c:854: error: invalid use of undefined type 'struct buffer'
  280. openvpn/crypto.c:854: error: storage size of 'decrypt_workspace' isn't known
  281. openvpn/crypto.c:855: error: variable 'buf' has initializer but incomplete type
  282. openvpn/crypto.c:855: error: invalid use of undefined type 'struct buffer'
  283. openvpn/crypto.c:855: error: storage size of 'buf' isn't known
  284. openvpn/crypto.c:873: warning: implicit declaration of function 'RAND_pseudo_bytes'
  285. openvpn/crypto.c:880: error: type of formal parameter 2 is incomplete
  286. openvpn/crypto.c:883: error: type of formal parameter 2 is incomplete
  287. openvpn/crypto.c:855: warning: unused variable 'buf'
  288. openvpn/crypto.c:854: warning: unused variable 'decrypt_workspace'
  289. openvpn/crypto.c:853: warning: unused variable 'encrypt_workspace'
  290. openvpn/crypto.c:852: warning: unused variable 'work'
  291. openvpn/crypto.c:851: warning: unused variable 'src'
  292. openvpn/crypto.c: In function 'get_tls_handshake_key':
  293. openvpn/crypto.c:917: error: 'struct key_type' has no member named 'cipher'
  294. openvpn/crypto.c:951: warning: implicit declaration of function 'read_passphrase_hash'
  295. openvpn/crypto.c:952: error: 'struct key_type' has no member named 'digest'
  296. openvpn/crypto.c: In function 'read_key_file':
  297. openvpn/crypto.c:1002: error: storage size of 'in' isn't known
  298. openvpn/crypto.c:1049: error: invalid use of undefined type 'struct buffer'
  299. openvpn/crypto.c:1002: warning: unused variable 'in'
  300. openvpn/crypto.c: At top level:
  301. openvpn/crypto.c:1194: warning: type defaults to 'int' in declaration of 'EVP_MD'
  302. openvpn/crypto.c:1194: error: expected ';', ',' or ')' before '*' token
  303. openvpn/crypto.c: In function 'write_key_file':
  304. openvpn/crypto.c:1255: error: variable 'out' has initializer but incomplete type
  305. openvpn/crypto.c:1255: error: invalid use of undefined type 'struct buffer'
  306. openvpn/crypto.c:1255: error: storage size of 'out' isn't known
  307. openvpn/crypto.c:1256: error: variable 'nbits_head_text' has initializer but incomplete type
  308. openvpn/crypto.c:1256: error: invalid use of undefined type 'struct buffer'
  309. openvpn/crypto.c:1256: error: storage size of 'nbits_head_text' isn't known
  310. openvpn/crypto.c:1256: warning: unused variable 'nbits_head_text'
  311. openvpn/crypto.c:1255: warning: unused variable 'out'
  312. openvpn/crypto.c: In function 'show_available_ciphers':
  313. openvpn/crypto.c:1482: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  314. openvpn/crypto.c:1482: error: 'cipher' undeclared (first use in this function)
  315. openvpn/crypto.c:1482: warning: implicit declaration of function 'EVP_get_cipherbynid'
  316. openvpn/crypto.c:1483: warning: passing argument 1 of 'cipher_ok' makes pointer from integer without a cast
  317. openvpn/crypto.h:124: note: expected 'const char *' but argument is of type 'int'
  318. openvpn/crypto.c: In function 'show_available_digests':
  319. openvpn/crypto.c:1516: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  320. openvpn/crypto.c:1516: error: 'digest' undeclared (first use in this function)
  321. openvpn/crypto.c:1516: warning: implicit declaration of function 'EVP_get_digestbynid'
  322. openvpn/crypto.c: In function 'show_available_engines':
  323. openvpn/crypto.c:1530: error: 'ENGINE' undeclared (first use in this function)
  324. openvpn/crypto.c:1530: error: 'e' undeclared (first use in this function)
  325. openvpn/crypto.c:1534: warning: implicit declaration of function 'ENGINE_load_builtin_engines'
  326. openvpn/crypto.c:1536: warning: implicit declaration of function 'ENGINE_get_first'
  327. openvpn/crypto.c:1540: warning: implicit declaration of function 'ENGINE_get_name'
  328. openvpn/crypto.c:1541: warning: implicit declaration of function 'ENGINE_get_id'
  329. openvpn/crypto.c:1542: warning: implicit declaration of function 'ENGINE_get_next'
  330. openvpn/crypto.c:1544: warning: implicit declaration of function 'ENGINE_cleanup'
  331. openvpn/crypto.c: At top level:
  332. openvpn/crypto.c:1558: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  333. openvpn/crypto.c:1561: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  334. openvpn/crypto.c:1577: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  335. openvpn/crypto.c: In function 'init_crypto_lib_engine':
  336. openvpn/crypto.c:1618: error: 'engine_persist' undeclared (first use in this function)
  337. openvpn/crypto.c:1619: warning: implicit declaration of function 'setup_engine'
  338. openvpn/crypto.c: In function 'uninit_crypto_lib':
  339. openvpn/crypto.c:1641: error: 'engine_persist' undeclared (first use in this function)
  340. openvpn/crypto.c: At top level:
  341. openvpn/crypto.c:1656: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  342. openvpn/crypto.c: In function 'prng_init':
  343. openvpn/crypto.c:1663: error: 'nonce_md' undeclared (first use in this function)
  344. openvpn/crypto.c:1663: warning: pointer/integer type mismatch in conditional expression
  345. openvpn/crypto.c: In function 'prng_uninit':
  346. openvpn/crypto.c:1693: error: 'nonce_md' undeclared (first use in this function)
  347. openvpn/crypto.c: In function 'prng_bytes':
  348. openvpn/crypto.c:1700: error: 'nonce_md' undeclared (first use in this function)
  349. openvpn/crypto.c:1702: error: 'EVP_MD_CTX' undeclared (first use in this function)
  350. openvpn/crypto.c:1702: error: expected ';' before 'ctx'
  351. openvpn/crypto.c:1708: warning: implicit declaration of function 'EVP_DigestInit'
  352. openvpn/crypto.c:1708: error: 'ctx' undeclared (first use in this function)
  353. openvpn/crypto.c:1709: warning: implicit declaration of function 'EVP_DigestUpdate'
  354. openvpn/crypto.c:1710: warning: implicit declaration of function 'EVP_DigestFinal'
  355. openvpn/crypto.c: In function 'md5sum':
  356. openvpn/crypto.c:1737: warning: implicit declaration of function 'MD5'
  357. openvpn/crypto.c:1736: warning: unused variable 'digest'
  358. openvpn/crypto.c: In function 'md5_state_init':
  359. openvpn/crypto.c:1804: warning: implicit declaration of function 'MD5_Init'
  360. openvpn/crypto.c:1804: error: 'struct md5_state' has no member named 'ctx'
  361. openvpn/crypto.c: In function 'md5_state_update':
  362. openvpn/crypto.c:1810: warning: implicit declaration of function 'MD5_Update'
  363. openvpn/crypto.c:1810: error: 'struct md5_state' has no member named 'ctx'
  364. openvpn/crypto.c: In function 'md5_state_final':
  365. openvpn/crypto.c:1816: warning: implicit declaration of function 'MD5_Final'
  366. openvpn/crypto.c:1816: error: 'struct md5_state' has no member named 'ctx'
  367. /cygdrive/d/NDK/android-ndk-r7c/build/core/build-binary.mk:240: recipe for target `obj/local/armeabi/objs/openvpn/crypto.o' failed
  368. make: *** [obj/local/armeabi/objs/openvpn/crypto.o] Error 1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top