Advertisement
Guest User

libssh-0.1

a guest
May 21st, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.79 KB | None | 0 0
  1. root@l-arena:~# cd libssh-0.1/
  2. root@l-arena:~/libssh-0.1# ls
  3. API.txt client.c config.sub COPYING libssh README
  4. AUTHORS config.guess configure include Makefile.in
  5. CHANGELOG config.h.in configure.in install-sh mkinstalldirs
  6. root@l-arena:~/libssh-0.1# clear
  7. root@l-arena:~/libssh-0.1# ./configure
  8. checking build system type... x86_64-unknown-linux-gnu
  9. checking host system type... x86_64-unknown-linux-gnu
  10. checking for gcc... gcc
  11. checking for C compiler default output... a.out
  12. checking whether the C compiler works... yes
  13. checking whether we are cross compiling... no
  14. checking for suffix of executables...
  15. checking for suffix of object files... o
  16. checking whether we are using the GNU C compiler... yes
  17. checking whether gcc accepts -g... yes
  18. checking for gcc option to accept ANSI C... none needed
  19. checking for a BSD-compatible install... /usr/bin/install -c
  20. checking whether ln -s works... yes
  21. checking whether make sets $(MAKE)... yes
  22. checking for ranlib... ranlib
  23. checking whether byte ordering is bigendian... no
  24. checking for BN_init in -lcrypto... yes
  25. checking for deflateInit_ in -lz... yes
  26. checking for gethostbyname in -lresolv... yes
  27. checking for gethostbyname in -lnsl... yes
  28. checking how to run the C preprocessor... gcc -E
  29. checking for egrep... grep -E
  30. checking for ANSI C header files... yes
  31. checking for sys/types.h... yes
  32. checking for sys/stat.h... yes
  33. checking for stdlib.h... yes
  34. checking for string.h... yes
  35. checking for memory.h... yes
  36. checking for strings.h... yes
  37. checking for inttypes.h... yes
  38. checking for stdint.h... yes
  39. checking for unistd.h... yes
  40. checking fcntl.h usability... yes
  41. checking fcntl.h presence... yes
  42. checking for fcntl.h... yes
  43. checking netdb.h usability... yes
  44. checking netdb.h presence... yes
  45. checking for netdb.h... yes
  46. checking netinet/in.h usability... yes
  47. checking netinet/in.h presence... yes
  48. checking for netinet/in.h... yes
  49. checking for stdlib.h... (cached) yes
  50. checking for string.h... (cached) yes
  51. checking sys/socket.h usability... yes
  52. checking sys/socket.h presence... yes
  53. checking for sys/socket.h... yes
  54. checking sys/time.h usability... yes
  55. checking sys/time.h presence... yes
  56. checking for sys/time.h... yes
  57. checking termios.h usability... yes
  58. checking termios.h presence... yes
  59. checking for termios.h... yes
  60. checking for unistd.h... (cached) yes
  61. checking openssl/aes.h usability... yes
  62. checking openssl/aes.h presence... yes
  63. checking for openssl/aes.h... yes
  64. checking openssl/blowfish.h usability... yes
  65. checking openssl/blowfish.h presence... yes
  66. checking for openssl/blowfish.h... yes
  67. checking zlib.h usability... yes
  68. checking zlib.h presence... yes
  69. checking for zlib.h... yes
  70. checking sys/poll.h usability... yes
  71. checking sys/poll.h presence... yes
  72. checking for sys/poll.h... yes
  73. checking for an ANSI C-conforming const... yes
  74. checking whether time.h and sys/time.h may both be included... yes
  75. checking for stdlib.h... (cached) yes
  76. checking for GNU libc compatible malloc... yes
  77. checking for working memcmp... yes
  78. checking for stdlib.h... (cached) yes
  79. checking for GNU libc compatible realloc... yes
  80. checking sys/select.h usability... yes
  81. checking sys/select.h presence... yes
  82. checking for sys/select.h... yes
  83. checking for sys/socket.h... (cached) yes
  84. checking types of arguments for select... int,fd_set *,struct timeval *
  85. checking return type of signal handlers... void
  86. checking for vprintf... yes
  87. checking for _doprnt... no
  88. checking for endpwent... yes
  89. checking for gethostbyaddr... yes
  90. checking for gethostbyname... yes
  91. checking for getpass... yes
  92. checking for memmove... yes
  93. checking for memset... yes
  94. checking for select... yes
  95. checking for socket... yes
  96. checking for strchr... yes
  97. checking for strdup... yes
  98. checking for strerror... yes
  99. checking for strstr... yes
  100. checking for poll... yes
  101. configure: creating ./config.status
  102. config.status: creating Makefile
  103. config.status: creating libssh/Makefile
  104. config.status: creating config.h
  105. root@l-arena:~/libssh-0.1# make
  106. ln -s -f ../../config.h include/libssh/config.h
  107. gcc -g -O2 -Iinclude/ -Wall -g -c -o client.o client.c
  108. client.c: In function ‘main’:
  109. client.c:247:38: warning: pointer targets in passing argument 2 of ‘ssh_print_hexa’ differ in signedness [-Wpointer-sign]
  110. ssh_print_hexa("Public key hash",hash,MD5_DIGEST_LEN);
  111. ^~~~
  112. In file included from client.c:21:0:
  113. include/libssh/libssh.h:303:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  114. void ssh_print_hexa(char *descr,unsigned char *what, int len);
  115. ^~~~~~~~~~~~~~
  116. client.c: In function ‘select_loop’:
  117. client.c:124:21: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  118. write(1,buffer_get(readbuf),lus);
  119. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  120. client.c:135:21: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  121. write(2,buffer_get(readbuf),lus);
  122. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  123. make[1]: Entering directory '/root/libssh-0.1/libssh'
  124. gcc -g -O2 -Wall -g -I../include/ -c -o client.o client.c
  125. client.c: In function ‘send_banner’:
  126. client.c:64:5: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  127. write(session->fd,buffer,strlen(buffer));
  128. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  129. gcc -g -O2 -Wall -g -I../include/ -c -o packet.o packet.c
  130. packet.c: In function ‘packet_read’:
  131. packet.c:136:44: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
  132. if(!buffer_get_char(session->in_buffer,&padding)){
  133. ^
  134. In file included from packet.c:27:0:
  135. ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
  136. int buffer_get_char(BUFFER *buffer,char *data);
  137. ^~~~~~~~~~~~~~~
  138. packet.c: In function ‘packet_translate’:
  139. packet.c:161:44: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
  140. if(!buffer_get_char(session->in_buffer,&session->in_packet.type)){
  141. ^
  142. In file included from packet.c:27:0:
  143. ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
  144. int buffer_get_char(BUFFER *buffer,char *data);
  145. ^~~~~~~~~~~~~~~
  146. gcc -g -O2 -Wall -g -I../include/ -c -o dh.o dh.c
  147. In file included from dh.c:43:0:
  148. dh.c: In function ‘make_bignum_string’:
  149. dh.c:152:32: warning: pointer targets in passing argument 2 of ‘BN_bn2bin’ differ in signedness [-Wpointer-sign]
  150. finallen=bignum_bn2bin(num,ptr->string+pad);
  151. ^
  152. ../include/libssh/libssh.h:69:46: note: in definition of macro ‘bignum_bn2bin’
  153. #define bignum_bn2bin(num,ptr) BN_bn2bin(num,ptr)
  154. ^~~
  155. In file included from /usr/include/openssl/dsa.h:81:0,
  156. from ../include/libssh/libssh.h:40,
  157. from dh.c:43:
  158. /usr/include/openssl/bn.h:443:5: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  159. int BN_bn2bin(const BIGNUM *a, unsigned char *to);
  160. ^~~~~~~~~
  161. dh.c:143:9: warning: variable ‘finallen’ set but not used [-Wunused-but-set-variable]
  162. int finallen;
  163. ^~~~~~~~
  164. In file included from dh.c:43:0:
  165. dh.c: In function ‘make_string_bn’:
  166. dh.c:159:23: warning: pointer targets in passing argument 1 of ‘BN_bin2bn’ differ in signedness [-Wpointer-sign]
  167. return bignum_bin2bn(string->string,len,NULL);
  168. ^
  169. ../include/libssh/libssh.h:60:50: note: in definition of macro ‘bignum_bin2bn’
  170. #define bignum_bin2bn(bn,datalen,data) BN_bin2bn(bn,datalen,data)
  171. ^~
  172. In file included from /usr/include/openssl/dsa.h:81:0,
  173. from ../include/libssh/libssh.h:40,
  174. from dh.c:43:
  175. /usr/include/openssl/bn.h:442:9: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  176. BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
  177. ^~~~~~~~~
  178. dh.c: In function ‘make_sessionid’:
  179. dh.c:233:16: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  180. sha1_final(session->next_crypto->session_id,ctx);
  181. ^~~~~~~
  182. In file included from dh.c:43:0:
  183. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  184. void sha1_final(unsigned char *md,SHACTX *c);
  185. ^~~~~~~~~~
  186. dh.c: In function ‘generate_one_key’:
  187. dh.c:260:16: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  188. sha1_final(output,ctx);
  189. ^~~~~~
  190. In file included from dh.c:43:0:
  191. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  192. void sha1_final(unsigned char *md,SHACTX *c);
  193. ^~~~~~~~~~
  194. dh.c: In function ‘generate_session_keys’:
  195. dh.c:280:20: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  196. sha1_final(session->next_crypto->encryptkey+SHA_DIGEST_LEN,ctx);
  197. ^~~~~~~
  198. In file included from dh.c:43:0:
  199. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  200. void sha1_final(unsigned char *md,SHACTX *c);
  201. ^~~~~~~~~~
  202. dh.c:290:20: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  203. sha1_final(session->next_crypto->decryptkey+SHA_DIGEST_LEN,ctx);
  204. ^~~~~~~
  205. In file included from dh.c:43:0:
  206. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  207. void sha1_final(unsigned char *md,SHACTX *c);
  208. ^~~~~~~~~~
  209. dh.c: In function ‘pubkey_get_hash’:
  210. dh.c:314:15: warning: pointer targets in passing argument 1 of ‘md5_final’ differ in signedness [-Wpointer-sign]
  211. md5_final(hash,ctx);
  212. ^~~~
  213. In file included from dh.c:43:0:
  214. ../include/libssh/libssh.h:79:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  215. void md5_final(unsigned char *md,MD5CTX *c);
  216. ^~~~~~~~~
  217. dh.c: In function ‘sig_verify’:
  218. dh.c:347:10: warning: pointer targets in passing argument 1 of ‘sha1’ differ in signedness [-Wpointer-sign]
  219. sha1(digest,SHA_DIGEST_LENGTH,hash);
  220. ^~~~~~
  221. In file included from dh.c:43:0:
  222. ../include/libssh/libssh.h:83:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  223. void sha1(unsigned char *digest,int len,unsigned char *hash);
  224. ^~~~
  225. dh.c:347:35: warning: pointer targets in passing argument 3 of ‘sha1’ differ in signedness [-Wpointer-sign]
  226. sha1(digest,SHA_DIGEST_LENGTH,hash);
  227. ^~~~
  228. In file included from dh.c:43:0:
  229. ../include/libssh/libssh.h:83:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  230. void sha1(unsigned char *digest,int len,unsigned char *hash);
  231. ^~~~
  232. dh.c:350:33: warning: pointer targets in passing argument 1 of ‘DSA_do_verify’ differ in signedness [-Wpointer-sign]
  233. valid=DSA_do_verify(hash,SHA_DIGEST_LENGTH,signature->dsa_sign,
  234. ^~~~
  235. In file included from ../include/libssh/libssh.h:40:0,
  236. from dh.c:43:
  237. /usr/include/openssl/dsa.h:194:5: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  238. int DSA_do_verify(const unsigned char *dgst, int dgst_len,
  239. ^~~~~~~~~~~~~
  240. dh.c:362:35: warning: pointer targets in passing argument 2 of ‘RSA_verify’ differ in signedness [-Wpointer-sign]
  241. valid=RSA_verify(NID_sha1,hash,SHA_DIGEST_LENGTH,
  242. ^~~~
  243. In file included from ../include/libssh/libssh.h:41:0,
  244. from dh.c:43:
  245. /usr/include/openssl/rsa.h:412:5: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  246. int RSA_verify(int type, const unsigned char *m, unsigned int m_length,
  247. ^~~~~~~~~~
  248. dh.c:363:13: warning: pointer targets in passing argument 4 of ‘RSA_verify’ differ in signedness [-Wpointer-sign]
  249. signature->rsa_sign->string,string_len(signature->rsa_sign),pubkey->rsa_pub);
  250. ^~~~~~~~~
  251. In file included from ../include/libssh/libssh.h:41:0,
  252. from dh.c:43:
  253. /usr/include/openssl/rsa.h:412:5: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  254. int RSA_verify(int type, const unsigned char *m, unsigned int m_length,
  255. ^~~~~~~~~~
  256. dh.c: In function ‘ssh_get_random’:
  257. dh.c:79:9: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
  258. read(rndfd,where,len);
  259. ^~~~~~~~~~~~~~~~~~~~~
  260. gcc -g -O2 -Wall -g -I../include/ -c -o crypt.o crypt.c
  261. crypt.c: In function ‘packet_encrypt’:
  262. crypt.c:71:20: warning: pointer targets in passing argument 2 of ‘hmac_final’ differ in signedness [-Wpointer-sign]
  263. hmac_final(ctx,session->current_crypto->hmacbuf,&finallen);
  264. ^~~~~~~
  265. In file included from crypt.c:32:0:
  266. ../include/libssh/libssh.h:88:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  267. void hmac_final(HMACCTX *ctx,unsigned char *hashmacbuf,int *len);
  268. ^~~~~~~~~~
  269. gcc -g -O2 -Wall -g -I../include/ -c -o connect.o connect.c
  270. gcc -g -O2 -Wall -g -I../include/ -c -o error.o error.c
  271. gcc -g -O2 -Wall -g -I../include/ -c -o buffer.o buffer.c
  272. buffer.c: In function ‘buffer_get_ssh_string’:
  273. buffer.c:144:31: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  274. if(buffer_get_long(buffer,&stringlen)==0)
  275. ^
  276. buffer.c:132:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  277. int buffer_get_long(BUFFER *buffer, long *data){
  278. ^~~~~~~~~~~~~~~
  279. gcc -g -O2 -Wall -g -I../include/ -c -o string.o string.c
  280. gcc -g -O2 -Wall -g -I../include/ -c -o kex.o kex.c
  281. kex.c: In function ‘ssh_get_kex’:
  282. kex.c:126:34: warning: pointer targets in passing argument 2 of ‘hashbufin_add_cookie’ differ in signedness [-Wpointer-sign]
  283. hashbufin_add_cookie(session,session->server_kex.cookie);
  284. ^~~~~~~
  285. In file included from kex.c:24:0:
  286. ../include/libssh/libssh.h:300:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  287. void hashbufin_add_cookie(SSH_SESSION *session,unsigned char *cookie);
  288. ^~~~~~~~~~~~~~~~~~~~
  289. gcc -g -O2 -Wall -g -I../include/ -c -o channels.o channels.c
  290. channels.c: In function ‘open_session_channel’:
  291. channels.c:116:52: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  292. buffer_get_long(session->in_buffer,&code);
  293. ^
  294. In file included from channels.c:29:0:
  295. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  296. int buffer_get_long(BUFFER *buffer,long *data);
  297. ^~~~~~~~~~~~~~~
  298. channels.c: In function ‘channel_eof’:
  299. channels.c:261:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  300. buffer_get_long(session->in_buffer,&channelnum);
  301. ^
  302. In file included from channels.c:29:0:
  303. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  304. int buffer_get_long(BUFFER *buffer,long *data);
  305. ^~~~~~~~~~~~~~~
  306. channels.c: In function ‘channel_close’:
  307. channels.c:275:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  308. buffer_get_long(session->in_buffer,&channelnum);
  309. ^
  310. In file included from channels.c:29:0:
  311. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  312. int buffer_get_long(BUFFER *buffer,long *data);
  313. ^~~~~~~~~~~~~~~
  314. channels.c: In function ‘channel_input_request’:
  315. channels.c:291:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  316. buffer_get_long(session->in_buffer,&channelnum);
  317. ^
  318. In file included from channels.c:29:0:
  319. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  320. int buffer_get_long(BUFFER *buffer,long *data);
  321. ^~~~~~~~~~~~~~~
  322. channels.c:302:40: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
  323. buffer_get_char(session->in_buffer,(unsigned char *)&status);
  324. ^
  325. In file included from channels.c:29:0:
  326. ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
  327. int buffer_get_char(BUFFER *buffer,char *data);
  328. ^~~~~~~~~~~~~~~
  329. gcc -g -O2 -Wall -g -I../include/ -c -o options.o options.c
  330. gcc -g -O2 -Wall -g -I../include/ -c -o keys.o keys.c
  331. keys.c: In function ‘ssh_do_sign’:
  332. keys.c:331:16: warning: pointer targets in passing argument 1 of ‘sha1_final’ differ in signedness [-Wpointer-sign]
  333. sha1_final(hash,ctx);
  334. ^~~~
  335. In file included from keys.c:26:0:
  336. ../include/libssh/libssh.h:82:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
  337. void sha1_final(unsigned char *md,SHACTX *c);
  338. ^~~~~~~~~~
  339. keys.c:336:40: warning: pointer targets in passing argument 1 of ‘DSA_do_sign’ differ in signedness [-Wpointer-sign]
  340. sign->dsa_sign=DSA_do_sign(hash,SHA_DIGEST_LENGTH,privatekey->dsa_priv);
  341. ^~~~
  342. In file included from keys.c:24:0:
  343. /usr/include/openssl/dsa.h:193:10: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
  344. DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
  345. ^~~~~~~~~~~
  346. gcc -g -O2 -Wall -g -I../include/ -c -o auth.o auth.c
  347. gcc -g -O2 -Wall -g -I../include/ -c -o base64.o base64.c
  348. gcc -g -O2 -Wall -g -I../include/ -c -o keyfiles.o keyfiles.c
  349. gcc -g -O2 -Wall -g -I../include/ -c -o misc.o misc.c
  350. gcc -g -O2 -Wall -g -I../include/ -c -o gzip.o gzip.c
  351. gcc -g -O2 -Wall -g -I../include/ -c -o wrapper.o wrapper.c
  352. wrapper.c: In function ‘hmac_final’:
  353. wrapper.c:102:30: warning: pointer targets in passing argument 3 of ‘HMAC_Final’ differ in signedness [-Wpointer-sign]
  354. HMAC_Final(ctx,hashmacbuf,len);
  355. ^~~
  356. In file included from ../include/libssh/libssh.h:44:0,
  357. from wrapper.c:28:
  358. /usr/include/openssl/hmac.h:97:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’
  359. int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len);
  360. ^~~~~~~~~~
  361. gcc -g -O2 -Wall -g -I../include/ -c -o sftp.o sftp.c
  362. sftp.c: In function ‘sftp_packet_read’:
  363. sftp.c:96:37: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  364. buffer_get_long(packet->payload,&size);
  365. ^
  366. In file included from sftp.c:28:0:
  367. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  368. int buffer_get_long(BUFFER *buffer,long *data);
  369. ^~~~~~~~~~~~~~~
  370. sftp.c:103:37: warning: pointer targets in passing argument 2 of ‘buffer_get_char’ differ in signedness [-Wpointer-sign]
  371. buffer_get_char(packet->payload,&packet->type);
  372. ^
  373. In file included from sftp.c:28:0:
  374. ../include/libssh/libssh.h:425:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
  375. int buffer_get_char(BUFFER *buffer,char *data);
  376. ^~~~~~~~~~~~~~~
  377. sftp.c: In function ‘sftp_get_message’:
  378. sftp.c:137:40: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  379. if(buffer_get_long(packet->payload,&msg->id)!=sizeof(long)){
  380. ^
  381. In file included from sftp.c:28:0:
  382. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  383. int buffer_get_long(BUFFER *buffer,long *data);
  384. ^~~~~~~~~~~~~~~
  385. sftp.c: In function ‘sftp_init’:
  386. sftp.c:184:37: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  387. buffer_get_long(packet->payload,&version);
  388. ^
  389. In file included from sftp.c:28:0:
  390. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  391. int buffer_get_long(BUFFER *buffer,long *data);
  392. ^~~~~~~~~~~~~~~
  393. sftp.c: In function ‘parse_status_msg’:
  394. sftp.c:271:39: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  395. if( (buffer_get_long(msg->payload,&status->status)!= 4)
  396. ^
  397. In file included from sftp.c:28:0:
  398. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  399. int buffer_get_long(BUFFER *buffer,long *data);
  400. ^~~~~~~~~~~~~~~
  401. sftp.c: In function ‘sftp_parse_attr_4’:
  402. sftp.c:381:32: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  403. if(buffer_get_long(buf,&flags)!=4)
  404. ^
  405. In file included from sftp.c:28:0:
  406. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  407. int buffer_get_long(BUFFER *buffer,long *data);
  408. ^~~~~~~~~~~~~~~
  409. sftp.c:386:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  410. if(buffer_get_longlong(buf,&attr->size)!=8)
  411. ^
  412. In file included from sftp.c:28:0:
  413. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  414. int buffer_get_longlong(BUFFER *buffer, long long *data);
  415. ^~~~~~~~~~~~~~~~~~~
  416. sftp.c:397:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  417. if(buffer_get_long(buf,&attr->permissions)!=4)
  418. ^
  419. In file included from sftp.c:28:0:
  420. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  421. int buffer_get_long(BUFFER *buffer,long *data);
  422. ^~~~~~~~~~~~~~~
  423. sftp.c:402:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  424. if(buffer_get_longlong(buf,&attr->atime64)!=8)
  425. ^
  426. In file included from sftp.c:28:0:
  427. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  428. int buffer_get_longlong(BUFFER *buffer, long long *data);
  429. ^~~~~~~~~~~~~~~~~~~
  430. sftp.c:407:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  431. if(buffer_get_long(buf,&attr->atime_nseconds)!=4)
  432. ^
  433. In file included from sftp.c:28:0:
  434. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  435. int buffer_get_long(BUFFER *buffer,long *data);
  436. ^~~~~~~~~~~~~~~
  437. sftp.c:412:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  438. if(buffer_get_longlong(buf,&attr->createtime)!=8)
  439. ^
  440. In file included from sftp.c:28:0:
  441. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  442. int buffer_get_longlong(BUFFER *buffer, long long *data);
  443. ^~~~~~~~~~~~~~~~~~~
  444. sftp.c:417:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  445. if(buffer_get_long(buf,&attr->createtime_nseconds)!=4)
  446. ^
  447. In file included from sftp.c:28:0:
  448. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  449. int buffer_get_long(BUFFER *buffer,long *data);
  450. ^~~~~~~~~~~~~~~
  451. sftp.c:422:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  452. if(buffer_get_longlong(buf,&attr->mtime64)!=8)
  453. ^
  454. In file included from sftp.c:28:0:
  455. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  456. int buffer_get_longlong(BUFFER *buffer, long long *data);
  457. ^~~~~~~~~~~~~~~~~~~
  458. sftp.c:427:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  459. if(buffer_get_long(buf,&attr->mtime_nseconds)!=4)
  460. ^
  461. In file included from sftp.c:28:0:
  462. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  463. int buffer_get_long(BUFFER *buffer,long *data);
  464. ^~~~~~~~~~~~~~~
  465. sftp.c:436:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  466. if(buffer_get_long(buf,&attr->extended_count)!=4)
  467. ^
  468. In file included from sftp.c:28:0:
  469. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  470. int buffer_get_long(BUFFER *buffer,long *data);
  471. ^~~~~~~~~~~~~~~
  472. sftp.c: In function ‘sftp_parse_attr_3’:
  473. sftp.c:510:32: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  474. if(buffer_get_long(buf,&flags)!=4)
  475. ^
  476. In file included from sftp.c:28:0:
  477. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  478. int buffer_get_long(BUFFER *buffer,long *data);
  479. ^~~~~~~~~~~~~~~
  480. sftp.c:516:40: warning: pointer targets in passing argument 2 of ‘buffer_get_longlong’ differ in signedness [-Wpointer-sign]
  481. if(buffer_get_longlong(buf,&attr->size)!=8)
  482. ^
  483. In file included from sftp.c:28:0:
  484. ../include/libssh/libssh.h:427:5: note: expected ‘long long int *’ but argument is of type ‘long long unsigned int *’
  485. int buffer_get_longlong(BUFFER *buffer, long long *data);
  486. ^~~~~~~~~~~~~~~~~~~
  487. sftp.c:522:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  488. if(buffer_get_long(buf,&attr->uid)!=4)
  489. ^
  490. In file included from sftp.c:28:0:
  491. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  492. int buffer_get_long(BUFFER *buffer,long *data);
  493. ^~~~~~~~~~~~~~~
  494. sftp.c:524:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  495. if(buffer_get_long(buf,&attr->gid)!=4)
  496. ^
  497. In file included from sftp.c:28:0:
  498. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  499. int buffer_get_long(BUFFER *buffer,long *data);
  500. ^~~~~~~~~~~~~~~
  501. sftp.c:530:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  502. if(buffer_get_long(buf,&attr->permissions)!=4)
  503. ^
  504. In file included from sftp.c:28:0:
  505. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  506. int buffer_get_long(BUFFER *buffer,long *data);
  507. ^~~~~~~~~~~~~~~
  508. sftp.c:535:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  509. if(buffer_get_long(buf,&attr->atime)!=4)
  510. ^
  511. In file included from sftp.c:28:0:
  512. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  513. int buffer_get_long(BUFFER *buffer,long *data);
  514. ^~~~~~~~~~~~~~~
  515. sftp.c:538:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  516. if(buffer_get_long(buf,&attr->mtime)!=4)
  517. ^
  518. In file included from sftp.c:28:0:
  519. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  520. int buffer_get_long(BUFFER *buffer,long *data);
  521. ^~~~~~~~~~~~~~~
  522. sftp.c:543:36: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  523. if(buffer_get_long(buf,&attr->extended_count)!=4)
  524. ^
  525. In file included from sftp.c:28:0:
  526. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  527. int buffer_get_long(BUFFER *buffer,long *data);
  528. ^~~~~~~~~~~~~~~
  529. sftp.c: In function ‘sftp_readdir’:
  530. sftp.c:648:46: warning: pointer targets in passing argument 2 of ‘buffer_get_long’ differ in signedness [-Wpointer-sign]
  531. buffer_get_long(msg->payload,&dir->count);
  532. ^
  533. In file included from sftp.c:28:0:
  534. ../include/libssh/libssh.h:426:5: note: expected ‘long int *’ but argument is of type ‘long unsigned int *’
  535. int buffer_get_long(BUFFER *buffer,long *data);
  536. ^~~~~~~~~~~~~~~
  537. gcc -o libssh.so -shared client.o packet.o dh.o crypt.o connect.o error.o buffer.o string.o kex.o channels.o options.o keys.o auth.o base64.o keyfiles.o misc.o gzip.o wrapper.o sftp.o -lnsl -lresolv -lz -lcrypto
  538. /usr/bin/ld: client.o: relocation R_X86_64_PC32 against symbol `dh_handshake' can not be used when making a shared object; recompile with -fPIC
  539. /usr/bin/ld: final link failed: Bad value
  540. collect2: error: ld returned 1 exit status
  541. Makefile:30: recipe for target 'libssh.so' failed
  542. make[1]: *** [libssh.so] Error 1
  543. make[1]: Leaving directory '/root/libssh-0.1/libssh'
  544. Makefile:26: recipe for target 'all' failed
  545. make: *** [all] Error 1
  546. root@l-arena:~/libssh-0.1#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement