1*0efc6a03SBarry Smith /* 2*0efc6a03SBarry Smith This is the include file for source code that accesses HTTPS 3*0efc6a03SBarry Smith */ 4*0efc6a03SBarry Smith #if !defined(__PETSCWEBCLIENT_H) 5*0efc6a03SBarry Smith #define __PETSCWEBCLIENT_H 6*0efc6a03SBarry Smith 7*0efc6a03SBarry Smith #include <petscsys.h> 8*0efc6a03SBarry Smith 9*0efc6a03SBarry Smith #include <errno.h> 10*0efc6a03SBarry Smith #include <sys/types.h> 11*0efc6a03SBarry Smith #include <sys/socket.h> 12*0efc6a03SBarry Smith #include <netinet/in.h> 13*0efc6a03SBarry Smith #include <netinet/tcp.h> 14*0efc6a03SBarry Smith #include <netdb.h> 15*0efc6a03SBarry Smith #include <fcntl.h> 16*0efc6a03SBarry Smith #include <signal.h> 17*0efc6a03SBarry Smith #include <unistd.h> 18*0efc6a03SBarry Smith #include <string.h> 19*0efc6a03SBarry Smith 20*0efc6a03SBarry Smith #include <openssl/ssl.h> 21*0efc6a03SBarry Smith #include <openssl/err.h> 22*0efc6a03SBarry Smith 23*0efc6a03SBarry Smith PETSC_EXTERN PetscErrorCode PetscSSLInitializeContext(SSL_CTX **); 24*0efc6a03SBarry Smith PETSC_EXTERN PetscErrorCode PetscSSLDestroyContext(SSL_CTX *); 25*0efc6a03SBarry Smith PETSC_EXTERN PetscErrorCode PetscHTTPSRequest(const char[],const char[],const char[],const char[],const char[],SSL*,char[],size_t); 26*0efc6a03SBarry Smith PETSC_EXTERN PetscErrorCode PetscHTTPSConnect(const char[],int,SSL_CTX *,int *,SSL **); 27*0efc6a03SBarry Smith 28*0efc6a03SBarry Smith #endif 29