summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-04 00:10:24 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-04 00:10:24 +0200
commit66404f0bfbd78e635ff6381ca30b25157e0e1a09 (patch)
tree2e55670da27019b2c80efa58f3e2159ca888a530 /src/include
parentcb9bff92107d168ff6dd0c12dc34bc7bacc8eb7d (diff)
remove unused headers
Diffstat (limited to 'src/include')
-rw-r--r--src/include/auto_patrn.h6
-rw-r--r--src/include/auto_qmail.h6
-rw-r--r--src/include/auto_spawn.h6
-rw-r--r--src/include/auto_split.h6
-rw-r--r--src/include/auto_uids.h16
-rw-r--r--src/include/auto_usera.h6
-rw-r--r--src/include/exit.h16
-rw-r--r--src/include/fifo.h6
-rw-r--r--src/include/meson.build3
-rw-r--r--src/include/readwrite.h11
-rw-r--r--src/include/ucspitls.h46
11 files changed, 0 insertions, 128 deletions
diff --git a/src/include/auto_patrn.h b/src/include/auto_patrn.h
deleted file mode 100644
index 77cdf1f..0000000
--- a/src/include/auto_patrn.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef AUTO_PATRN_H
-#define AUTO_PATRN_H
-
-extern int auto_patrn;
-
-#endif
diff --git a/src/include/auto_qmail.h b/src/include/auto_qmail.h
deleted file mode 100644
index 0c56001..0000000
--- a/src/include/auto_qmail.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef AUTO_QMAIL_H
-#define AUTO_QMAIL_H
-
-extern char auto_qmail[];
-
-#endif
diff --git a/src/include/auto_spawn.h b/src/include/auto_spawn.h
deleted file mode 100644
index 165d988..0000000
--- a/src/include/auto_spawn.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef AUTO_SPAWN_H
-#define AUTO_SPAWN_H
-
-extern int auto_spawn;
-
-#endif
diff --git a/src/include/auto_split.h b/src/include/auto_split.h
deleted file mode 100644
index 3754129..0000000
--- a/src/include/auto_split.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef AUTO_SPLIT_H
-#define AUTO_SPLIT_H
-
-extern int auto_split;
-
-#endif
diff --git a/src/include/auto_uids.h b/src/include/auto_uids.h
deleted file mode 100644
index 1252ecb..0000000
--- a/src/include/auto_uids.h
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef AUTO_UIDS_H
-#define AUTO_UIDS_H
-
-extern int auto_uida;
-extern int auto_uidd;
-extern int auto_uidl;
-extern int auto_uido;
-extern int auto_uidp;
-extern int auto_uidq;
-extern int auto_uidr;
-extern int auto_uids;
-
-extern int auto_gidn;
-extern int auto_gidq;
-
-#endif
diff --git a/src/include/auto_usera.h b/src/include/auto_usera.h
deleted file mode 100644
index 49d7755..0000000
--- a/src/include/auto_usera.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef AUTO_USERA_H
-#define AUTO_USERA_H
-
-extern char auto_usera[];
-
-#endif
diff --git a/src/include/exit.h b/src/include/exit.h
deleted file mode 100644
index d7351ba..0000000
--- a/src/include/exit.h
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef EXIT_H
-#define EXIT_H
-
-/* Return code conventions:
-
- 110: Unable to access dir
- 111: General (memory) error
- 112: Unable to access file
-*/
-
-void _exit();
-
-int rename(const char *, const char *);
-
-
-#endif
diff --git a/src/include/fifo.h b/src/include/fifo.h
deleted file mode 100644
index cfaa801..0000000
--- a/src/include/fifo.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef FIFO_H
-#define FIFO_H
-
-int fifo_make(char *, int);
-
-#endif
diff --git a/src/include/meson.build b/src/include/meson.build
index 5f621f5..3677692 100644
--- a/src/include/meson.build
+++ b/src/include/meson.build
@@ -12,9 +12,7 @@ sqmail_hdrs = [
'dnsdoe.h',
'dnsgettxt.h',
'dns.h',
- 'exit.h',
'extra.h',
- 'fifo.h',
'fmtqfn.h',
'gfrom.h',
'global.h',
@@ -38,7 +36,6 @@ sqmail_hdrs = [
'quote.h',
'rcpthosts.h',
'readsubdir.h',
- 'readwrite.h',
'received.h',
'recipients.h',
'sendtodo.h',
diff --git a/src/include/readwrite.h b/src/include/readwrite.h
deleted file mode 100644
index 4fdb771..0000000
--- a/src/include/readwrite.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#ifndef READWRITE_H
-#define READWRITE_H
-
-#include <unistd.h>
-/* Already in unistd.h */
-/*
-int read();
-int write();
-*/
-
-#endif
diff --git a/src/include/ucspitls.h b/src/include/ucspitls.h
deleted file mode 100644
index f0505c7..0000000
--- a/src/include/ucspitls.h
+++ /dev/null
@@ -1,46 +0,0 @@
-#ifndef UCSPITLS_H
-#define UCSPITLS_H
-
-#include <openssl/ec.h>
-#include <openssl/opensslv.h>
-#include <openssl/ssl.h>
-
-#include "stralloc.h"
-
-#define SSL_NAME_LEN 256
-#define OPENSSL_VERSION_NUMBER 0x101010100L
-
-#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
- #define ssl_client() (ssl_context(SSLv23_client_method()))
- #define ssl_server() (ssl_context(SSLv23_server_method()))
-#else
- #define ssl_client() (ssl_context(TLS_client_method()))
- #define ssl_server() (ssl_context(TLS_server_method()))
-#endif
-
-extern int ssl_errno;
-int ssl_io(SSL *, int, int, unsigned int);
-SSL_CTX *ssl_context(SSL_METHOD *);
-int ssl_timeoutconn(SSL *, unsigned int);
-int ssl_timeoutaccept(SSL *, unsigned int);
-SSL *ssl_new(SSL_CTX *, int);
-int ssl_certkey(SSL_CTX *, const char *, const char *, pem_password_cb *);
-int ssl_ca(SSL_CTX *, const char *, const char *, int);
-int ssl_cca(SSL_CTX *, const char *);
-int ssl_ciphers(SSL_CTX *, const char *);
-int ssl_verify(SSL *, const char *);
-int ssl_params(SSL_CTX *, const char *, int);
-int ssl_server_env(SSL *, stralloc *);
-int ssl_client_env(SSL *, stralloc *);
-char *ssl_error_str(int);
-
-#define ssl_errstr() (SSL_load_error_strings())
-#define ssl_free(ssl) (SSL_free((ssl)))
-#define ssl_close(ssl) (close(SSL_get_fd((ssl))))
-
-#define ssl_pending(ssl) (SSL_pending((ssl)))
-#define ssl_shutdown(ssl) (SSL_shutdown((ssl)))
-#define ssl_shutdown_pending(ssl) (SSL_get_shutdown((ssl)) & SSL_RECEIVED_SHUTDOWN)
-#define ssl_shutdown_sent(ssl) (SSL_get_shutdown((ssl)) & SSL_SENT_SHUTDOWN)
-
-#endif