Skip to content

Commit

Permalink
Remove main.h
Browse files Browse the repository at this point in the history
  • Loading branch information
npmccallum committed May 8, 2015
1 parent d9f95f4 commit 49c4834
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 28 deletions.
3 changes: 1 addition & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ libcore_a_SOURCES = \
src/cleanup.h \
src/d2i.c \
src/d2i.h \
src/main.c \
src/common.h
src/main.c

peterad_CFLAGS = @OPENSSL_CFLAGS@ @LIBSYSTEMD_CFLAGS@
peterad_LDADD = @OPENSSL_LIBS@ @LIBSYSTEMD_LIBS@ libcore.a
Expand Down
2 changes: 2 additions & 0 deletions src/d2i.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include <openssl/asn1.h>
#include <openssl/bio.h>

#define PETERA_MAX_INPUT (1024 * 512)

void *
d2i_bio_max(const ASN1_ITEM *it, BIO *in, void *x, unsigned int max);

Expand Down
21 changes: 0 additions & 21 deletions src/main.h

This file was deleted.

1 change: 0 additions & 1 deletion src/petera/decrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "../main.h"
#include "../d2i.h"
#include "query.h"

Expand Down
1 change: 0 additions & 1 deletion src/petera/encrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include "encrypt.h"
#include "query.h"
#include "../main.h"
#include "../asn1.h"
#include "../d2i.h"

Expand Down
1 change: 0 additions & 1 deletion src/petera/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/

#include "query.h"
#include "../main.h"

#include <openssl/err.h>

Expand Down
1 change: 0 additions & 1 deletion src/petera/run.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/

#include "../cleanup.h"
#include "../main.h"
#include "../d2i.h"

#include <openssl/err.h>
Expand Down
1 change: 0 additions & 1 deletion src/peterad/run.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define _GNU_SOURCE
#include "decrypt.h"
#include "../d2i.h"
#include "../main.h"

#include <openssl/err.h>
#include <systemd/sd-daemon.h>
Expand Down

0 comments on commit 49c4834

Please sign in to comment.