summaryrefslogtreecommitdiff
path: root/astro/xephem/files/patch-net.h
diff options
context:
space:
mode:
authorJosh Paetzel <jpaetzel@FreeBSD.org>2019-03-23 23:22:06 +0000
committerJosh Paetzel <jpaetzel@FreeBSD.org>2019-03-23 23:22:06 +0000
commitac54569d184629811ef9a6b92c54cfd8590301b1 (patch)
treea068c58b24d726b26b5edf8b1921656b05b594e3 /astro/xephem/files/patch-net.h
parentAdd dateparser, which provides python modules to easily parse localized (diff)
Several improvements
- Fix the perl shebang and set the execute bit on two perl scripts that are installed by the port. - Incorporate patches that allow HTTPS updates in the app to work. Suggested by: Scott C. Allendorf <scott-allendorf@uiowa.edu>
Notes
Notes: svn path=/head/; revision=496694
Diffstat (limited to 'astro/xephem/files/patch-net.h')
-rw-r--r--astro/xephem/files/patch-net.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/astro/xephem/files/patch-net.h b/astro/xephem/files/patch-net.h
new file mode 100644
index 000000000000..17a8e6e2c8a8
--- /dev/null
+++ b/astro/xephem/files/patch-net.h
@@ -0,0 +1,30 @@
+--- net.h.orig 2005-03-20 11:04:50 UTC
++++ net.h
+@@ -20,6 +20,13 @@
+ #include <sys/select.h>
+ #endif
+
++#include <openssl/ssl.h>
++
++typedef struct {
++ int fd; //file desciptor for the underlying connection socket
++ SSL *ssl; //ssl connection for use with SSL_read( )and SSL_write()
++} XE_SSL_FD;
++
+ /* support functions */
+
+ extern int httpGET (char *host, char *GETcmd, char msg[]);
+@@ -29,8 +36,11 @@ extern int readbytes (int fd, unsigned char buf[], int
+ extern int recvline (int fd, char buf[], int max);
+ extern int recvlineb (int sock, char *buf, int size);
+ extern int sendbytes (int fd, unsigned char buf[], int n);
+-
+-
++extern int httpsGET (char *host, char *GETcmd, char msg[], XE_SSL_FD *ssl_fd);
++extern int ssl_recvbytes (XE_SSL_FD *ssl_fd, unsigned char buf[], int n);
++extern int ssl_readbytes (XE_SSL_FD *ssl_fd, unsigned char buf[], int n);
++extern int ssl_recvline (XE_SSL_FD *ssl_fd, char buf[], int max);
++extern int ssl_recvlineb (XE_SSL_FD *ssl_fd, char *buf, int size);
+
+ /* For RCS Only -- Do Not Edit
+ * @(#) $RCSfile: net.h,v $ $Date: 2003/03/17 07:26:21 $ $Revision: 1.3 $ $Name: $