Actual source code: petscwebclient.h
1: /*
2: This is the include file for source code that accesses HTTPS
3: */
4: #pragma once
6: /* complex number I conflicts with SSL include files */
7: #if !defined(PETSC_SKIP_COMPLEX)
8: #define PETSC_SKIP_COMPLEX
9: #endif
10: #include <petscsys.h>
12: #include <errno.h>
13: #include <sys/types.h>
14: #include <sys/socket.h>
15: #include <netinet/in.h>
16: #include <netinet/tcp.h>
17: #include <netdb.h>
18: #include <fcntl.h>
19: #include <signal.h>
20: #include <unistd.h>
21: #include <string.h>
23: #include <openssl/ssl.h>
24: #include <openssl/err.h>
26: PETSC_EXTERN PetscErrorCode PetscSSLInitializeContext(SSL_CTX **);
27: PETSC_EXTERN PetscErrorCode PetscSSLDestroyContext(SSL_CTX *);
28: PETSC_EXTERN PetscErrorCode PetscHTTPSRequest(const char[], const char[], const char[], const char[], const char[], SSL *, char[], size_t);
29: PETSC_EXTERN PetscErrorCode PetscHTTPSConnect(const char[], int, SSL_CTX *, int *, SSL **);
31: PETSC_EXTERN PetscErrorCode PetscHTTPRequest(const char[], const char[], const char[], const char[], const char[], int, char[], size_t);