Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | I think I fix a possible bug on platforms where 'char' has signed meaning, on the code about noting the 'rcvfrom' ipv4 address. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | ssl_peer_ip |
Files: | files | file ages | folders |
SHA1: |
9ce6771c782b82688419dbed72d5fc54 |
User & Date: | viriketo 2011-09-01 20:38:06.519 |
Original Comment: | I think I fix a possible bug on platforms where 'char' has signed meaning, on the code about noting the 'rcvfrom' ipv4 address. |
Context
2011-09-01
| ||
21:51 | Merge the ssl_peer_ip branch into trunk. ... (check-in: 8b9c933c user: drh tags: trunk) | |
20:38 | I think I fix a possible bug on platforms where 'char' has signed meaning, on the code about noting the 'rcvfrom' ipv4 address. ... (Closed-Leaf check-in: 9ce6771c user: viriketo tags: ssl_peer_ip) | |
20:33 |
Adding some ipv4-only code to get the ip where we took the content from for the https connections.
The "rcvfrom" information was lost in the case of https connections.
I don't know how to make it work well for ipv6 too. ... (check-in: daa6a0eb user: viriketo tags: ssl_peer_ip) | |
Changes
Changes to src/http_ssl.c.
︙ | ︙ | |||
285 286 287 288 289 290 291 | /* Set the Global.zIpAddr variable to the server we are talking to. ** This is used to populate the ipaddr column of the rcvfrom table, ** if any files are received from the server. */ { /* IPv4 only code */ | | | 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 | /* Set the Global.zIpAddr variable to the server we are talking to. ** This is used to populate the ipaddr column of the rcvfrom table, ** if any files are received from the server. */ { /* IPv4 only code */ const unsigned char *ip = (const unsigned char *) BIO_get_conn_ip(iBio); g.zIpAddr = mprintf("%d.%d.%d.%d", ip[0], ip[1], ip[2], ip[3]); } X509_free(cert); return 0; } |
︙ | ︙ |