Compare commits

...

35 Commits

Author SHA1 Message Date
  David Lanzendörfer 2755a7cf5a z/OS support: Charsets for I/O 2 weeks ago
  David Lanzendörfer f3f07c2bcc z/OS support: Charsets... 2 weeks ago
  David Lanzendörfer 6eaa9475da z/OS support: Be not verbose 2 weeks ago
  David Lanzendörfer 3468421fc5 z/OS: zlib dependency 2 weeks ago
  David Lanzendörfer 00233866bc z/OS support: Fixing some ASCII math gym 2 weeks ago
  David Lanzendörfer e4ac016f5d z/OS support: Issues with parsing 2 months ago
  David Lanzendörfer 5fd672d28a z/OS support: Signing 2 months ago
  David Lanzendörfer 90bd14fda8 z/OS support: Encryption 2 months ago
  David Lanzendörfer 083ace387e First success 2 months ago
  David Lanzendörfer e087beac6f Ignoring a file 2 months ago
  David Lanzendörfer e31b1b5556 The netpgp binary now compiles and runs 2 months ago
  David Lanzendörfer 4d988fb41f z/OS support 2 months ago
  David Lanzendörfer 67fa906486 Removing X-Code stuff 2 months ago
  David Lanzendörfer c4c847b531 Fixing some segfaults 3 months ago
  David Lanzendörfer 365834e4c8 Oops... 3 months ago
  David Lanzendörfer 0da42a0ad8 Now I can encrypt files 3 months ago
  David Lanzendörfer a8b684a082 Cleaning some more stuff 3 months ago
  David Lanzendörfer f9f37c22f8 Now I finally can print the UIDs 3 months ago
  David Lanzendörfer aa0ccaaec3 Key generation works now 3 months ago
  David Lanzendörfer def203c3e8 Getting closer 3 months ago
  David Lanzendörfer 96d97b9935 Seriously Werror?? 3 months ago
  David Lanzendörfer c81f749b4b Introducing some additional checks 3 months ago
  David Lanzendörfer 819ebc2928 remove unused file 3 months ago
  David Lanzendörfer 6e006681b6 Adapt to the changes 3 months ago
  David Lanzendörfer a20e72da13 Now we can have everything one folder 3 months ago
  David Lanzendörfer 872c74979a Don't use tabs 3 months ago
  David Lanzendörfer c42ec0a86b Nailing soure file 3 months ago
  David Lanzendörfer dc90fad80a Ignore files 3 months ago
  David Lanzendörfer 58f30021d5 Cleaning up 3 months ago
  David Lanzendörfer 68cb1bbe2e Cleaning up a bit 3 months ago
  David Lanzendörfer f100b0863d Introducing back in the binary 3 months ago
  David Lanzendörfer 7de87d3332 Getting platform detection working 3 months ago
  David Lanzendörfer 19081fe64e Removing config.h.in 3 months ago
  David Lanzendörfer a8f01c15f9 Fixing autoconf/autoheader usage 3 months ago
  David Lanzendörfer 2bfcaf67c7 Initial compilation on Linux 3 months ago
40 changed files with 14316 additions and 11812 deletions
Split View
  1. +9
    -0
      .gitignore
  2. +1
    -1
      Makefile.am
  3. +90
    -0
      ax_check_gskssl.m4
  4. +90
    -0
      ax_check_pkcs.m4
  5. +39
    -12
      configure.ac
  6. +10
    -18
      include/netpgp.h
  7. +0
    -160
      include/netpgp/config.h
  8. +29
    -23
      include/netpgp/create.h
  9. +162
    -145
      include/netpgp/crypto.h
  10. +2
    -0
      include/netpgp/defs.h
  11. +13
    -0
      include/netpgp/netpgpdefs.h
  12. +3
    -0
      include/netpgp/netpgpdigest.h
  13. +600
    -521
      include/netpgp/packet.h
  14. +10
    -0
      include/netpgp/writer.h
  15. +0
    -5
      netpgp-xcode/README.txt
  16. +0
    -160
      netpgp-xcode/config.h
  17. +0
    -432
      netpgp-xcode/netpgp.xcodeproj/project.pbxproj
  18. +0
    -7
      netpgp-xcode/netpgp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  19. +28
    -3
      src/Makefile.am
  20. +9
    -3
      src/compress.c
  21. +603
    -625
      src/create.c
  22. +515
    -517
      src/crypto.c
  23. +1027
    -0
      src/getopt.c
  24. +130
    -0
      src/getopt.h
  25. +176
    -0
      src/getopt1.c
  26. +57
    -0
      src/gettext.h
  27. +816
    -0
      src/gskssl_crypto.c
  28. +491
    -490
      src/keyring.c
  29. +0
    -343
      src/libnetpgp.3
  30. +714
    -0
      src/main.c
  31. +711
    -656
      src/misc.c
  32. +316
    -273
      src/netpgp.c
  33. +566
    -534
      src/openssl_crypto.c
  34. +2748
    -2701
      src/packet-parse.c
  35. +1586
    -1571
      src/reader.c
  36. +850
    -801
      src/signature.c
  37. +51
    -0
      src/ssl_crypto.c
  38. +32
    -2
      src/symmetric.c
  39. +678
    -669
      src/validate.c
  40. +1154
    -1140
      src/writer.c

+ 9
- 0
.gitignore View File

@ -0,0 +1,9 @@
configure
aclocal.m4
autom4te.cache
build
*/Makefile.in
Makefile.in
include/netpgp/config.h.in
include/netpgp/config.h.in~
buildaux

+ 1
- 1
Makefile.am View File

@ -1,3 +1,3 @@
## $NetBSD$
SUBDIRS = include src
SUBDIRS = . include src

+ 90
- 0
ax_check_gskssl.m4 View File

@ -0,0 +1,90 @@
AU_ALIAS([CHECK_SSL], [AX_CHECK_GSKSSL])
AC_DEFUN([AX_CHECK_GSKSSL], [
found=false
AC_ARG_WITH(gskssl,
AS_HELP_STRING([--with-gskssl=DIR],
[root of the GSK SSL directory]),
[
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([Invalid --with-gskssl value])
;;
*) ssldirs="$withval"
;;
esac
], [
# if pkg-config is installed and gskssl has installed a .pc file,
# then use that information and don't search ssldirs
AC_PATH_PROG(PKG_CONFIG, pkg-config)
if test x"$PKG_CONFIG" != x""; then
GSKSSL_LDFLAGS=`$PKG_CONFIG gskssl --libs-only-L 2>/dev/null`
if test $? = 0; then
GSKSSL_LIBS=`$PKG_CONFIG gskssl --libs-only-l 2>/dev/null`
GSKSSL_INCLUDES=`$PKG_CONFIG gskssl --cflags-only-I 2>/dev/null`
found=true
fi
fi
# no such luck; use some default ssldirs
if ! $found; then
ssldirs="/usr/lpp/gskssl /usr"
fi
]
)
# note that we #include <gskssl/foo.h>, so the GSK SSL headers have to be in
# an 'gskssl' subdirectory
if ! $found; then
GSKSSL_INCLUDES=
for ssldir in $ssldirs; do
AC_MSG_CHECKING([for include/gskssl.h in $ssldir])
if test -f "$ssldir/include/gskssl.h"; then
if test -f "$ssldir/lib/GSKSSL.x"; then
GSKSSL_INCLUDES="-I$ssldir/include"
GSKSSL_LDFLAGS="-L$ssldir/lib"
GSKSSL_LIBS="$ssldir/lib/GSKSSL.x $ssldir/lib/GSKCMS64.x"
found=true
AC_MSG_RESULT([yes])
fi
break
else
AC_MSG_RESULT([no])
fi
done
# if the file wasn't found, well, go ahead and try the link anyway -- maybe
# it will just work!
fi
# try the preprocessor and linker with our new flags,
# being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
AC_MSG_CHECKING([whether compiling and linking against GSK SSL works])
echo "Trying link with GSKSSL_LDFLAGS=$GSKSSL_LDFLAGS;" \
"GSKSSL_LIBS=$GSKSSL_LIBS; GSKSSL_INCLUDES=$GSKSSL_INCLUDES" >&AS_MESSAGE_LOG_FD
save_LIBS="$LIBS"
save_LDFLAGS="$LDFLAGS"
save_CPPFLAGS="$CPPFLAGS"
LDFLAGS="$LDFLAGS $GSKSSL_LDFLAGS"
LIBS="$GSKSSL_LIBS $LIBS"
CPPFLAGS="$GSKSSL_INCLUDES $CPPFLAGS"
AC_LINK_IFELSE(
AC_LANG_PROGRAM([#include <gskssl.h>], [gsk_handle env_handle;]),
[
AC_MSG_RESULT([yes])
$1
], [
AC_MSG_RESULT([no])
$2
])
CPPFLAGS="$save_CPPFLAGS"
LDFLAGS="$save_LDFLAGS"
LIBS="$save_LIBS"
AC_SUBST([GSKSSL_INCLUDES])
AC_SUBST([GSKSSL_LIBS])
AC_SUBST([GSKSSL_LDFLAGS])
])

+ 90
- 0
ax_check_pkcs.m4 View File

@ -0,0 +1,90 @@
AU_ALIAS([CHECK_PKCS], [AX_CHECK_PKCS])
AC_DEFUN([AX_CHECK_PKCS], [
found=false
AC_ARG_WITH(gskssl,
AS_HELP_STRING([--with-gskssl=DIR],
[root of the GSK PKCS directory]),
[
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([Invalid --with-gskssl value])
;;
*) pkcsdirs="$withval"
;;
esac
], [
# if pkg-config is installed and gskssl has installed a .pc file,
# then use that information and don't search pkcsdirs
AC_PATH_PROG(PKG_CONFIG, pkg-config)
if test x"$PKG_CONFIG" != x""; then
PKCS_LDFLAGS=`$PKG_CONFIG gskssl --libs-only-L 2>/dev/null`
if test $? = 0; then
PKCS_LIBS=`$PKG_CONFIG gskssl --libs-only-l 2>/dev/null`
PKCS_INCLUDES=`$PKG_CONFIG gskssl --cflags-only-I 2>/dev/null`
found=true
fi
fi
# no such luck; use some default pkcsdirs
if ! $found; then
pkcsdirs="/usr/lpp/pkcs11 /usr"
fi
]
)
# note that we #include <gskssl/foo.h>, so the GSK PKCS headers have to be in
# an 'gskssl' subdirectory
if ! $found; then
PKCS_INCLUDES=
for pkcsdir in $pkcsdirs; do
AC_MSG_CHECKING([for include/gskssl.h in $pkcsdir])
if test -f "$pkcsdir/include/csnpdefs.h"; then
if test -f "$pkcsdir/lib/CSNPCA64.x"; then
PKCS_INCLUDES="-I$pkcsdir/include"
PKCS_LDFLAGS="-L$pkcsdir/lib"
PKCS_LIBS="$pkcsdir/lib/CSNPCA64.x"
found=true
AC_MSG_RESULT([yes])
fi
break
else
AC_MSG_RESULT([no])
fi
done
# if the file wasn't found, well, go ahead and try the link anyway -- maybe
# it will just work!
fi
# try the preprocessor and linker with our new flags,
# being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
AC_MSG_CHECKING([whether compiling and linking against GSK PKCS works])
echo "Trying link with PKCS_LDFLAGS=$PKCS_LDFLAGS;" \
"PKCS_LIBS=$PKCS_LIBS; PKCS_INCLUDES=$PKCS_INCLUDES" >&AS_MESSAGE_LOG_FD
save_LIBS="$LIBS"
save_LDFLAGS="$LDFLAGS"
save_CPPFLAGS="$CPPFLAGS"
LDFLAGS="$LDFLAGS $PKCS_LDFLAGS"
LIBS="$PKCS_LIBS $LIBS"
CPPFLAGS="$PKCS_INCLUDES $CPPFLAGS"
AC_LINK_IFELSE(
AC_LANG_PROGRAM([#include <gskssl.h>], [gsk_handle env_handle;]),
[
AC_MSG_RESULT([yes])
$1
], [
AC_MSG_RESULT([no])
$2
])
CPPFLAGS="$save_CPPFLAGS"
LDFLAGS="$save_LDFLAGS"
LIBS="$save_LIBS"
AC_SUBST([PKCS_INCLUDES])
AC_SUBST([PKCS_LIBS])
AC_SUBST([PKCS_LDFLAGS])
])

+ 39
- 12
configure.ac View File

@ -8,9 +8,9 @@ AC_REVISION([$Revision$])
AS_SHELL_SANITIZE
AC_CONFIG_SRCDIR([src/netpgp.c])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_AUX_DIR([buildaux])
AC_CONFIG_HEADER([src/config.h])
AC_CONFIG_HEADER([include/netpgp/config.h])
AM_INIT_AUTOMAKE([-Wall foreign])
AM_MAINTAINER_MODE
@ -25,6 +25,7 @@ AC_PROG_MAKE_SET
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_AR
AC_PROG_LIBTOOL
AC_PROG_LN_S
@ -42,7 +43,7 @@ AC_PROG_AR
#
AC_MSG_CHECKING([if using gcc])
AS_IF([test "$GCC" = "yes"],
[WARNCFLAGS="-Werror -Wall -Wpointer-arith"
[WARNCFLAGS="-Wno-error -Wall -Wpointer-arith"
AC_MSG_RESULT([yes; adding to CFLAGS: "$WARNCFLAGS"])],
[WARNCFLAGS=""
AC_MSG_RESULT([no])])
@ -57,12 +58,21 @@ AC_HEADER_STDC
AC_CHECK_HEADERS([CommonCrypto/CommonDigest.h])
AC_CHECK_HEADERS([dmalloc.h direct.h errno.h fcntl.h \
inttypes.h limits.h malloc.h zlib.h])
AC_CHECK_HEADERS([sys/cdefs.h sys/file.h sys/mman.h sys/param.h \
sys/resource.h sys/uio.h])
AC_CHECK_HEADERS([bzlib.h],
[],
[AC_MSG_FAILURE([missing <bzlib.h>; is bzip2 installed?])])
AC_CHECK_HEADERS([sys/cdefs.h sys/file.h sys/mman.h\
sys/resource.h sys/uio.h])
platform_name=$(uname)
AS_IF([test "$platform_name" == "OS/390"],[
AC_MSG_NOTICE([z/OS detected... Skipping some headers])
ZLIB_FLAG="-lzz"
],[
AC_CHECK_HEADERS([sys/param.h])
AC_CHECK_HEADERS([bzlib.h], [], [
AC_MSG_FAILURE([missing <bzlib.h>; is bzip2 installed?])
])
ZLIB_FLAG="-lz"
])
AC_SUBST([ZLIB_FLAG])
# Checks for typedefs, structures, and compiler characteristics.
#
@ -75,16 +85,25 @@ AC_TYPE_UINT8_T
# check for openssl
m4_include([ax_check_openssl.m4])
m4_include([ax_check_gskssl.m4])
m4_include([ax_check_pkcs.m4])
AX_CHECK_OPENSSL([LIBS="$LIBS $OPENSSL_LDFLAGS $OPENSSL_LIBS" INCLUDES="$INCLUDES $OPENSSL_INCLUDES"],
[AC_MSG_ERROR([Missing OpenSSL])])
AX_CHECK_OPENSSL([LIBS="$LIBS $OPENSSL_LDFLAGS $OPENSSL_LIBS" INCLUDES="$INCLUDES $OPENSSL_INCLUDES" found_openssl="yes"],[found_openssl="no"])
AX_CHECK_GSKSSL([LIBS="$LIBS $GSKSSL_LDFLAGS $GSKSSL_LIBS" INCLUDES="$INCLUDES $GSKSSL_INCLUDES" found_gskssl="yes"],[found_gskssl="no"])
AX_CHECK_PKCS([LIBS="$LIBS $PKSC_LDFLAGS $PKCS_LIBS" INCLUDES="$INCLUDES $PKCS_INCLUDES" found_pkcs="yes"],[found_pkcs="no"])
AS_IF([test "$found_openssl" == "no"],[AS_IF([test "$found_gskssl" == "no"],[AC_MSG_FAILURE([No suitable SSL library found])])])
CPPFLAGS="$CPPFLAGS $INCLUDES"
AS_IF([test "$found_openssl" == "yes" ],[
AC_MSG_NOTICE([OpenSSL found])
AC_DEFINE([HAVE_OPENSSL], [1], [Use OpenSSL])
AC_CHECK_HEADERS([openssl/aes.h openssl/bn.h openssl/camellia.h openssl/cast.h \
openssl/des.h openssl/dsa.h openssl/err.h openssl/idea.h \
openssl/md5.h openssl/rand.h openssl/rsa.h openssl/sha.h \
openssl/err.h openssl/sha.h])
openssl/err.h openssl/sha.h openssl/ossl_typ.h])
AC_CHECK_TYPES([SHA256_CTX],
[],
@ -102,6 +121,14 @@ AC_CHECK_TYPES([SHA256_CTX],
#endif
]])
])
AS_IF([test "$found_gskssl" == "yes" ],[
AC_MSG_NOTICE([GSK SSL found])
AC_DEFINE([HAVE_GSKSSL], [1], [Use the SSL implementation from IBM])
AC_DEFINE([OPENSSL_NO_IDEA], [1], [Explicitely disable OPENSSL IDEA])
])
# Checks for library functions.
#
AC_SEARCH_LIBS([gzopen], [z])


+ 10
- 18
include/netpgp.h View File

@ -39,27 +39,26 @@
# endif
#endif
#include <config.h>
#include <keyring.h>
__BEGIN_DECLS
/* structure used to hold (key,value) pair information */
typedef struct netpgp_t {
unsigned c; /* # of elements used */
unsigned size; /* size of array */
char **name; /* key names */
char **value; /* value information */
void *pubring; /* public key ring */
void *secring; /* s3kr1t key ring */
void *io; /* the io struct for results/errs */
void *passfp; /* file pointer for password input */
unsigned c; /* # of elements used */
unsigned size; /* size of array */
char **name; /* key names */
char **value; /* value information */
pgp_keyring_t *pubring; /* public key ring */
pgp_keyring_t *secring; /* s3kr1t key ring */
void *io; /* the io struct for results/errs */
} netpgp_t;
/* begin and end */
int netpgp_init(netpgp_t *);
int netpgp_end(netpgp_t *);
const char *netpgp_get_info(const char *);
int netpgp_list_packets(netpgp_t *, char *, int, char *);
/* variables */
int netpgp_setvar(netpgp_t *, const char *, const char *);
char *netpgp_getvar(netpgp_t *, const char *);
@ -77,11 +76,8 @@ char *netpgp_get_key(netpgp_t *, const char *, const char *);
char *netpgp_export_key(netpgp_t *, char *);
int netpgp_save_secring(netpgp_t *);
int netpgp_save_pubring(netpgp_t *);
int netpgp_import_key(netpgp_t *, char *);
int netpgp_generate_key(netpgp_t *, char *, int);
/* file management */
int netpgp_encrypt_file(netpgp_t *, const char *, const char *, char *, int);
int netpgp_decrypt_file(netpgp_t *, const char *, char *, int);
int netpgp_sign_file(netpgp_t *, const char *, const char *, char *, int, int, int);
int netpgp_verify_file(netpgp_t *, const char *, const char *, int);
@ -100,10 +96,6 @@ int netpgp_format_json(void *, const char *, const int);
int netpgp_validate_sigs(netpgp_t *);
/* save pgp key in ssh format */
int netpgp_write_sshkey(netpgp_t *, char *, const char *, char *, size_t);
__END_DECLS
#endif /* !NETPGP_H_ */

+ 0
- 160
include/netpgp/config.h View File

@ -1,160 +0,0 @@
//
// config.h
// netpgp
#ifndef netpgp_config_h
#define netpgp_config_h
/* Define to 1 if you have the <bzlib.h> header file. */
#define HAVE_BZLIB_H 1
/* Define to 1 if you have the <CommonCrypto/CommonDigest.h> header file. */
#define HAVE_COMMONCRYPTO_COMMONDIGEST_H 1
/* Define to 1 if you have the <direct.h> header file. */
/* #undef HAVE_DIRECT_H */
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <dmalloc.h> header file. */
/* #undef HAVE_DMALLOC_H */
/* Define to 1 if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define to 1 if the system has the type 'long long int'. */
#define HAVE_LONG_LONG_INT 1
/* Define to 1 if you have the <malloc.h> header file. */
/* #undef HAVE_MALLOC_H */
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the <openssl/aes.h> header file. */
#define HAVE_OPENSSL_AES_H 1
/* Define to 1 if you have the <openssl/bn.h> header file. */
#define HAVE_OPENSSL_BN_H 1
/* Define to 1 if you have the <openssl/camellia.h> header file. */
/* #undef HAVE_OPENSSL_CAMELLIA_H */
/* Define to 1 if you have the <openssl/cast.h> header file. */
#define HAVE_OPENSSL_CAST_H 1
/* Define to 1 if you have the <openssl/des.h> header file. */
#define HAVE_OPENSSL_DES_H 1
/* Define to 1 if you have the <openssl/dsa.h> header file. */
#define HAVE_OPENSSL_DSA_H 1
/* Define to 1 if you have the <openssl/err.h> header file. */
#define HAVE_OPENSSL_ERR_H 1
/* Define to 1 if you have the <openssl/idea.h> header file. */
/* #undef HAVE_OPENSSL_IDEA_H */
/* Define to 1 if you have the <openssl/md5.h> header file. */
#define HAVE_OPENSSL_MD5_H 1
/* Define to 1 if you have the <openssl/rand.h> header file. */
#define HAVE_OPENSSL_RAND_H 1
/* Define to 1 if you have the <openssl/rsa.h> header file. */
#define HAVE_OPENSSL_RSA_H 1
/* Define to 1 if you have the <openssl/sha.h> header file. */
#define HAVE_OPENSSL_SHA_H 1
/* Define to 1 if the system has the type `SHA256_CTX'. */
#define HAVE_SHA256_CTX 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/cdefs.h> header file. */
#define HAVE_SYS_CDEFS_H 1
/* Define to 1 if you have the <sys/file.h> header file. */
#define HAVE_SYS_FILE_H 1
/* Define to 1 if you have the <sys/mman.h> header file. */
#define HAVE_SYS_MMAN_H 1
/* Define to 1 if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define to 1 if you have the <sys/resource.h> header file. */
#define HAVE_SYS_RESOURCE_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <sys/uio.h> header file. */
#define HAVE_SYS_UIO_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if the system has the type 'unsigned long long int'. */
#define HAVE_UNSIGNED_LONG_LONG_INT 1
/* Define to 1 if you have the <zlib.h> header file. */
#define HAVE_ZLIB_H 1
/* Define to the sub-directory where libtool stores uninstalled libraries. */
#define LT_OBJDIR ".libs/"
/* Name of package */
#define PACKAGE "netpgp"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT " pEp NetPGP Team <netpgp@pep-project.org> "
/* Define to the full name of this package. */
#define PACKAGE_NAME "netpgp"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "netpgp beta0"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "netpgp"
/* Define to the home page for this package. */
#define PACKAGE_URL ""
/* Define to the version of this package. */
#define PACKAGE_VERSION "beta0"
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Version number of package */
#define VERSION "beta0"
#define OPENSSL_NO_IDEA 1
#endif

+ 29
- 23
include/netpgp/create.h View File

@ -65,8 +65,8 @@
* This struct contains the required information about how to write this stream
*/
struct pgp_output_t {
pgp_writer_t writer;
pgp_error_t *errors; /* error stack */
pgp_writer_t writer;
pgp_error_t *errors; /* error stack */
};
pgp_output_t *pgp_output_new(void);
@ -77,26 +77,26 @@ int pgp_filewrite(const char *, const char *, const size_t, const unsigned);
void pgp_build_pubkey(pgp_memory_t *, const pgp_pubkey_t *, unsigned);
unsigned pgp_calc_sesskey_checksum(pgp_pk_sesskey_t *, uint8_t *);
unsigned pgp_write_struct_userid(pgp_output_t *, const uint8_t *);
unsigned pgp_write_struct_userid(pgp_output_t *, const char *);
unsigned pgp_write_ss_header(pgp_output_t *, size_t, pgp_content_enum);
unsigned pgp_write_struct_seckey_ptag(const pgp_seckey_t *key,
const uint8_t *passphrase,
const size_t pplen,
pgp_output_t *output,
pgp_content_enum ptag);
const uint8_t *passphrase,
const size_t pplen,
pgp_output_t *output,
pgp_content_enum ptag);
unsigned pgp_write_struct_seckey(const pgp_seckey_t *,
const uint8_t *,
const size_t,
pgp_output_t *);
const uint8_t *,
const size_t,
pgp_output_t *);
unsigned pgp_write_struct_pubkey(pgp_output_t *, const pgp_pubkey_t *);
unsigned pgp_write_one_pass_sig(pgp_output_t *,
const pgp_seckey_t *,
const pgp_hash_alg_t,
const pgp_sig_type_t);
const pgp_seckey_t *,
const pgp_hash_alg_t,
const pgp_sig_type_t);
unsigned pgp_write_litdata(pgp_output_t *,
const uint8_t *,
const int,
const pgp_litdata_enum);
const uint8_t *,
const int,
const pgp_litdata_enum);
pgp_pk_sesskey_t *pgp_create_pk_sesskey(pgp_key_t *, const char *, pgp_pk_sesskey_t *);
unsigned pgp_write_pk_sesskey(pgp_output_t *, pgp_pk_sesskey_t *);
unsigned pgp_write_xfer_key(pgp_output_t *output,
@ -104,18 +104,24 @@ unsigned pgp_write_xfer_key(pgp_output_t *output,
const unsigned armoured);
void pgp_fast_create_userid(uint8_t **, uint8_t *);
unsigned pgp_write_userid(const uint8_t *, pgp_output_t *);
unsigned pgp_write_userid(const char *, pgp_output_t *);
#ifdef HAVE_OPENSSL
void pgp_fast_create_rsa_pubkey(pgp_pubkey_t *, time_t, BIGNUM *, BIGNUM *);
unsigned pgp_write_rsa_pubkey(time_t, const BIGNUM *, const BIGNUM *,
pgp_output_t *);
pgp_output_t *);
void pgp_fast_create_rsa_seckey(pgp_seckey_t *, time_t, BIGNUM *,
BIGNUM *, BIGNUM *, BIGNUM *,
BIGNUM *, BIGNUM *);
BIGNUM *, BIGNUM *, BIGNUM *,
BIGNUM *, BIGNUM *);
#endif
unsigned encode_m_buf(const uint8_t *, size_t, const pgp_pubkey_t *,
uint8_t *);
uint8_t *);
unsigned pgp_fileread_litdata(const char *, const pgp_litdata_enum,
pgp_output_t *);
pgp_output_t *);
unsigned pgp_write_symm_enc_data(const uint8_t *, const int,
pgp_output_t *);
pgp_output_t *);
#endif /* CREATE_H_ */

+ 162
- 145
include/netpgp/crypto.h View File

@ -53,62 +53,74 @@
#ifndef CRYPTO_H_
#define CRYPTO_H_
#include "config.h"
#include "keyring.h"
#include "packet.h"
#include "memory.h"
#include "packet-parse.h"
#ifdef HAVE_OPENSSL_DSA_H
#include <openssl/dsa.h>
#endif
#define PGP_MIN_HASH_SIZE 16
#ifdef HAVE_GSKSSL
#include <gskcms.h>
#include <csfbext.h>
#include <csnpdefs.h>
#endif
#define PGP_MIN_HASH_SIZE 16
/** pgp_hash_t */
struct pgp_hash_t {
pgp_hash_alg_t alg; /* algorithm */
size_t size; /* size */
const char *name; /* what it's known as */
int (*init)(pgp_hash_t *);
void (*add)(pgp_hash_t *, const uint8_t *, unsigned);
unsigned (*finish)(pgp_hash_t *, uint8_t *);
void *data; /* blob for data */
pgp_hash_alg_t alg; /* algorithm */
size_t size; /* size */
const char *name; /* what it's known as */
int (*init)(pgp_hash_t *);
void (*add)(pgp_hash_t *, const uint8_t *, unsigned);
unsigned (*finish)(pgp_hash_t *, uint8_t *);
void *data; /* blob for data */
#ifdef HAVE_GSKSSL
CK_SESSION_HANDLE session;
#endif
};
/** pgp_crypt_t */
struct pgp_crypt_t {
pgp_symm_alg_t alg;
size_t blocksize;
size_t keysize;
void (*set_iv)(pgp_crypt_t *, const uint8_t *);
void (*set_crypt_key)(pgp_crypt_t *, const uint8_t *);
int (*base_init)(pgp_crypt_t *);
void (*decrypt_resync)(pgp_crypt_t *);
/* encrypt/decrypt one block */
void (*block_encrypt)(pgp_crypt_t *, void *, const void *);
void (*block_decrypt)(pgp_crypt_t *, void *, const void *);
/* Standard CFB encrypt/decrypt (as used by Sym Enc Int Prot packets) */
void (*cfb_encrypt)(pgp_crypt_t *, void *, const void *, size_t);
void (*cfb_decrypt)(pgp_crypt_t *, void *, const void *, size_t);
void (*decrypt_finish)(pgp_crypt_t *);
uint8_t iv[PGP_MAX_BLOCK_SIZE];
uint8_t civ[PGP_MAX_BLOCK_SIZE];
uint8_t siv[PGP_MAX_BLOCK_SIZE];
/* siv is needed for weird v3 resync */
uint8_t key[PGP_MAX_KEY_SIZE];
int num;
/* num is offset - see openssl _encrypt doco */
void *encrypt_key;
void *decrypt_key;
pgp_symm_alg_t alg;
size_t blocksize;
size_t keysize;
void (*set_iv)(pgp_crypt_t *, const uint8_t *);
void (*set_crypt_key)(pgp_crypt_t *, const uint8_t *);
int (*base_init)(pgp_crypt_t *);
void (*decrypt_resync)(pgp_crypt_t *);
/* encrypt/decrypt one block */
void (*block_encrypt)(pgp_crypt_t *, void *, const void *);
void (*block_decrypt)(pgp_crypt_t *, void *, const void *);
/* Standard CFB encrypt/decrypt (as used by Sym Enc Int Prot packets) */
void (*cfb_encrypt)(pgp_crypt_t *, void *, const void *, size_t);
void (*cfb_decrypt)(pgp_crypt_t *, void *, const void *, size_t);
void (*decrypt_finish)(pgp_crypt_t *);
uint8_t iv[PGP_MAX_BLOCK_SIZE];
uint8_t civ[PGP_MAX_BLOCK_SIZE];
uint8_t siv[PGP_MAX_BLOCK_SIZE];
/* siv is needed for weird v3 resync */
uint8_t key[PGP_MAX_KEY_SIZE];
int num;
/* num is offset - see openssl _encrypt doco */
void *encrypt_key;
void *decrypt_key;
};
typedef struct pgp_validation_t {
unsigned validc;
pgp_sig_info_t *valid_sigs;
unsigned invalidc;
pgp_sig_info_t *invalid_sigs;
unsigned unknownc;
pgp_sig_info_t *unknown_sigs;
time_t birthtime;
time_t duration;
unsigned validc;
pgp_sig_info_t *valid_sigs;
unsigned invalidc;
pgp_sig_info_t *invalid_sigs;
unsigned unknownc;
pgp_sig_info_t *unknown_sigs;
time_t birthtime;
time_t duration;
} pgp_validation_t;
void pgp_crypto_finish(void);
@ -127,18 +139,18 @@ unsigned pgp_hash(uint8_t *, pgp_hash_alg_t, const void *, size_t);
void pgp_hash_add_int(pgp_hash_t *, unsigned, unsigned);
unsigned pgp_dsa_verify(const uint8_t *, size_t,
const pgp_dsa_sig_t *,
const pgp_dsa_pubkey_t *);
const pgp_dsa_sig_t *,
const pgp_dsa_pubkey_t *);
int pgp_rsa_public_decrypt(uint8_t *, const uint8_t *, size_t,
const pgp_rsa_pubkey_t *);
const pgp_rsa_pubkey_t *);
int pgp_rsa_public_encrypt(uint8_t *, const uint8_t *, size_t,
const pgp_rsa_pubkey_t *);
const pgp_rsa_pubkey_t *);
int pgp_rsa_private_encrypt(uint8_t *, const uint8_t *, size_t,
const pgp_rsa_seckey_t *, const pgp_rsa_pubkey_t *);
const pgp_rsa_seckey_t *, const pgp_rsa_pubkey_t *);
int pgp_rsa_private_decrypt(uint8_t *, const uint8_t *, size_t,
const pgp_rsa_seckey_t *, const pgp_rsa_pubkey_t *);
const pgp_rsa_seckey_t *, const pgp_rsa_pubkey_t *);
int pgp_rsa_private_check(const pgp_seckey_t *seckey);
int pgp_dsa_private_check(const pgp_dsa_seckey_t *seckey);
int pgp_elgamal_private_check(const pgp_elgamal_seckey_t *seckey);
@ -146,16 +158,16 @@ int pgp_elgamal_private_check(const pgp_elgamal_seckey_t *seckey);
int pgp_elgamal_public_encrypt(uint8_t *, uint8_t *, const uint8_t *, size_t,
const pgp_elgamal_pubkey_t *);
const pgp_elgamal_pubkey_t *);
int pgp_elgamal_private_decrypt(uint8_t *, const uint8_t *, const uint8_t *, size_t,
const pgp_elgamal_seckey_t *, const pgp_elgamal_pubkey_t *);
const pgp_elgamal_seckey_t *, const pgp_elgamal_pubkey_t *);
pgp_symm_alg_t pgp_str_to_cipher(const char *);
unsigned pgp_block_size(pgp_symm_alg_t);
unsigned pgp_key_size(pgp_symm_alg_t);
int pgp_decrypt_data(pgp_content_enum, pgp_region_t *,
pgp_stream_t *);
pgp_stream_t *);
int pgp_crypt_any(pgp_crypt_t *, pgp_symm_alg_t);
void pgp_decrypt_init(pgp_crypt_t *);
@ -167,107 +179,114 @@ size_t pgp_encrypt_se_ip(pgp_crypt_t *, void *, const void *, size_t);
unsigned pgp_is_sa_supported(pgp_symm_alg_t);
void pgp_reader_push_decrypt(pgp_stream_t *, pgp_crypt_t *,
pgp_region_t *);
pgp_region_t *);
void pgp_reader_pop_decrypt(pgp_stream_t *);
/* Hash everything that's read */
void pgp_reader_push_hash(pgp_stream_t *, pgp_hash_t *);
void pgp_reader_pop_hash(pgp_stream_t *);
#if HAVE_OPENSSL
int pgp_decrypt_decode_mpi(uint8_t *, unsigned, const BIGNUM *,
const BIGNUM *, const pgp_seckey_t *);
const BIGNUM *, const pgp_seckey_t *);
#endif
#if HAVE_GSKSSL
int pgp_decrypt_decode_mpi(uint8_t *, unsigned, const gsk_buffer,
const gsk_buffer, const pgp_seckey_t *);
#endif
unsigned pgp_rsa_encrypt_mpi(const uint8_t *, const size_t,
const pgp_pubkey_t *,
pgp_pk_sesskey_params_t *);
const pgp_pubkey_t *,
pgp_pk_sesskey_params_t *);
unsigned pgp_elgamal_encrypt_mpi(const uint8_t *, const size_t,
const pgp_pubkey_t *,
pgp_pk_sesskey_params_t *);
const pgp_pubkey_t *,
pgp_pk_sesskey_params_t *);
/* Encrypt everything that's written */
struct pgp_key_data;
void pgp_writer_push_encrypt(pgp_output_t *,
const struct pgp_key_data *);
const struct pgp_key_data *);
unsigned pgp_encrypt_file(pgp_io_t *, const char *, const char *,
const pgp_key_t *,
const unsigned, const unsigned, const char *);
unsigned pgp_decrypt_file(pgp_io_t *,
const char *,
const char *,
pgp_keyring_t *,
pgp_keyring_t *,
const unsigned,
const unsigned,
const unsigned,
void *,
int,
pgp_cbfunc_t *);
const pgp_key_t *,
const unsigned, const unsigned, const char *);
unsigned
pgp_decrypt_file(pgp_io_t *io,
const char *infile,
const char *outfile,
pgp_keyring_t *secring,
pgp_keyring_t *pubring,
const unsigned use_armour,
const unsigned allow_overwrite,
int numtries,
pgp_cbfunc_t *getpassfunc);
pgp_memory_t *
pgp_encrypt_buf(pgp_io_t *, const void *, const size_t,
const pgp_keyring_t *,
const unsigned, const char *, unsigned);
const pgp_keyring_t *,
const unsigned, const char *, unsigned);
pgp_memory_t *
pgp_decrypt_buf(pgp_io_t *,
const void *,
const size_t,
pgp_keyring_t *,
pgp_keyring_t *,
const unsigned,
const unsigned,
void *,
int,
pgp_cbfunc_t *);
pgp_decrypt_buf(pgp_io_t *io,
const void *input,
const size_t insize,
pgp_keyring_t *secring,
pgp_keyring_t *pubring,
const unsigned use_armour,
int numtries,
pgp_cbfunc_t *getpassfunc);
pgp_memory_t *
pgp_decrypt_and_validate_buf(pgp_io_t *io,
pgp_validation_t *result,
const void *input,
const size_t insize,
pgp_keyring_t *secring,
pgp_keyring_t *pubring,
const unsigned use_armour,
pgp_validation_t *result,
const void *input,
const size_t insize,
pgp_keyring_t *secring,
pgp_keyring_t *pubring,
const unsigned use_armour,
key_id_t **recipients_key_ids,
unsigned *recipients_count);
/* Keys */
pgp_key_t *pgp_rsa_new_selfsign_key(const int,
const unsigned long, uint8_t *, const char *,
const char *);
const unsigned long, uint8_t *, const char *,
const char *);
unsigned pgp_rsa_generate_keypair(pgp_key_t *,
const int,
const unsigned long,
const char *,
const char *,
const int,
const unsigned long,
const char *,
const char *,
const uint8_t *,
const size_t);
int pgp_dsa_size(const pgp_dsa_pubkey_t *);
pgp_dsa_sig_t *pgp_dsa_sign(uint8_t *, unsigned,
const pgp_dsa_seckey_t *,
const pgp_dsa_pubkey_t *);
const pgp_dsa_seckey_t *,
const pgp_dsa_pubkey_t *);
/** pgp_reader_t */
struct pgp_reader_t {
pgp_reader_func_t *reader; /* reader func to get parse data */
pgp_reader_destroyer_t *destroyer;
void *arg; /* args to pass to reader function */
unsigned accumulate:1; /* set to gather packet data */
uint8_t *accumulated; /* the accumulated data */
unsigned asize; /* size of the buffer */
unsigned alength;/* used buffer */
unsigned position; /* reader-specific offset */
pgp_reader_t *next;
pgp_stream_t *parent;/* parent parse_info structure */
pgp_reader_func_t *reader; /* reader func to get parse data */
pgp_reader_destroyer_t *destroyer;
void *arg; /* args to pass to reader function */
unsigned accumulate:1; /* set to gather packet data */
uint8_t *accumulated; /* the accumulated data */
unsigned asize; /* size of the buffer */
unsigned alength;/* used buffer */
unsigned position; /* reader-specific offset */
pgp_reader_t *next;
pgp_stream_t *parent;/* parent parse_info structure */
unsigned partial_read:1;
unsigned coalescing:1;
unsigned partial_read:1;
unsigned coalescing:1;
/* used for partial length coalescing */
unsigned virtualc;
unsigned virtualoff;
uint8_t *virtualpkt;
unsigned virtualc;
unsigned virtualoff;
uint8_t *virtualpkt;
};
@ -275,37 +294,35 @@ struct pgp_reader_t {
Encrypt/decrypt settings
*/
struct pgp_cryptinfo_t {
char *passphrase;
pgp_keyring_t *secring;
pgp_key_t *keydata;
pgp_cbfunc_t *getpassphrase;
pgp_keyring_t *pubring;
DYNARRAY(key_id_t, recipients_key_ids);
char *passphrase;
pgp_keyring_t *secring;
pgp_key_t *keydata;
pgp_cbfunc_t *getpassphrase;
pgp_keyring_t *pubring;
DYNARRAY(key_id_t, recipients_key_ids);
};
/** pgp_cbdata_t */
struct pgp_cbdata_t {
pgp_cbfunc_t *cbfunc; /* callback function */
void *arg; /* args to pass to callback func */
pgp_error_t **errors; /* address of error stack */
pgp_cbdata_t *next;
pgp_output_t *output; /* when writing out parsed info */
pgp_io_t *io; /* error/output messages */
void *passfp; /* fp for passphrase input */
pgp_cryptinfo_t cryptinfo; /* used when decrypting */
pgp_printstate_t printstate; /* used to keep printing state */
pgp_seckey_t *sshseckey; /* secret key for ssh */
int numtries; /* # of passphrase attempts */
int gotpass; /* when passphrase entered */
pgp_cbfunc_t *cbfunc; /* callback function */
void *arg; /* args to pass to callback func */
pgp_error_t **errors; /* address of error stack */
pgp_cbdata_t *next;
pgp_output_t *output; /* when writing out parsed info */
pgp_io_t *io; /* error/output messages */
pgp_cryptinfo_t cryptinfo; /* used when decrypting */
pgp_printstate_t printstate; /* used to keep printing state */
int numtries; /* # of passphrase attempts */
int gotpass; /* when passphrase entered */
};
/** pgp_hashtype_t */
typedef struct {
pgp_hash_t hash; /* hashes we should hash data with */
uint8_t keyid[PGP_KEY_ID_SIZE];
pgp_hash_t hash; /* hashes we should hash data with */
uint8_t keyid[PGP_KEY_ID_SIZE];
} pgp_hashtype_t;
#define NTAGS 0x100 /* == 256 */
#define NTAGS 0x100 /* == 256 */
/** \brief Structure to hold information about a packet parse.
*
@ -330,21 +347,21 @@ typedef struct {
*/
struct pgp_stream_t {
uint8_t ss_raw[NTAGS / 8];
/* 1 bit / sig-subpkt type; set to get raw data */
uint8_t ss_parsed[NTAGS / 8];
/* 1 bit / sig-subpkt type; set to get parsed data */
pgp_reader_t readinfo;
pgp_cbdata_t cbinfo;
pgp_error_t *errors;
void *io; /* io streams */
pgp_crypt_t decrypt;
pgp_cryptinfo_t cryptinfo;
size_t hashc;
pgp_hashtype_t *hashes;
//unsigned reading_v3_secret:1;
//unsigned reading_mpi_len:1;
//unsigned exact_read:1;
uint8_t ss_raw[NTAGS / 8];
/* 1 bit / sig-subpkt type; set to get raw data */
uint8_t ss_parsed[NTAGS / 8];
/* 1 bit / sig-subpkt type; set to get parsed data */
pgp_reader_t readinfo;
pgp_cbdata_t cbinfo;
pgp_error_t *errors;
void *io; /* io streams */
pgp_crypt_t decrypt;
pgp_cryptinfo_t cryptinfo;
size_t hashc;
pgp_hashtype_t *hashes;
//unsigned reading_v3_secret:1;
//unsigned reading_mpi_len:1;
//unsigned exact_read:1;
};


+ 2
- 0
include/netpgp/defs.h View File

@ -32,7 +32,9 @@
#define DEFS_H_
#include <sys/types.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>


+ 13
- 0
include/netpgp/netpgpdefs.h View File

@ -29,6 +29,10 @@
#ifndef NETPGPDEFS_H_
#define NETPGPDEFS_H_ 1
#include <stdio.h>
#include <limits.h>
#include <config.h>
#define PRItime "ll"
#ifdef WIN32
@ -65,4 +69,13 @@ void *pgp_new(size_t);
} \
} while(/* CONSTCOND */0)
#ifdef HAVE_GSKSSL
#define CAST_KEY_LENGTH 16
#define SHA_DIGEST_LENGTH 20
#define SHA224_DIGEST_LENGTH 28
#define MAXPATHLEN _POSIX_PATH_MAX
#define SHA384_DIGEST_LENGTH 48
#define MD5_DIGEST_LENGTH 16
#endif
#endif /* !NETPGPDEFS_H_ */

+ 3
- 0
include/netpgp/netpgpdigest.h View File

@ -37,6 +37,9 @@
#ifdef HAVE_OPENSSL_SHA_H
#include <openssl/sha.h>
#else
#define SHA256_DIGEST_LENGTH 32
#define SHA512_DIGEST_LENGTH 64
#endif
/* Apple */


+ 600
- 521
include/netpgp/packet.h
File diff suppressed because it is too large
View File


+ 10
- 0
include/netpgp/writer.h View File

@ -59,6 +59,10 @@
#include "errors.h"
#include "keyring.h"
#ifdef HAVE_GSKSSL
#include <gsktypes.h>
#endif
/**
* \ingroup Writer
* the writer function prototype
@ -109,7 +113,13 @@ unsigned pgp_write(pgp_output_t *, const void *, unsigned);
unsigned pgp_write_length(pgp_output_t *, unsigned);
unsigned pgp_write_ptag(pgp_output_t *, pgp_content_enum);
unsigned pgp_write_scalar(pgp_output_t *, unsigned, unsigned);
#ifdef HAVE_GSKSSL
unsigned pgp_write_mpi(pgp_output_t *output, gsk_buffer bn);
#endif
#if HAVE_OPENSSL
unsigned pgp_write_mpi(pgp_output_t *, const BIGNUM *);
#endif
void pgp_writer_info_delete(pgp_writer_t *);
unsigned pgp_writer_info_finalise(pgp_error_t **, pgp_writer_t *);


+ 0
- 5
netpgp-xcode/README.txt View File

@ -1,5 +0,0 @@
OpenSSL build :
- clone https://github.com/x2on/OpenSSL-for-iPhone aside netpgp-et
- launch build

+ 0
- 160
netpgp-xcode/config.h View File

@ -1,160 +0,0 @@
//
// config.h
// netpgp
#ifndef netpgp_config_h
#define netpgp_config_h
/* Define to 1 if you have the <bzlib.h> header file. */
#define HAVE_BZLIB_H 1
/* Define to 1 if you have the <CommonCrypto/CommonDigest.h> header file. */
#define HAVE_COMMONCRYPTO_COMMONDIGEST_H 1
/* Define to 1 if you have the <direct.h> header file. */
/* #undef HAVE_DIRECT_H */
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <dmalloc.h> header file. */
/* #undef HAVE_DMALLOC_H */
/* Define to 1 if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define to 1 if the system has the type 'long long int'. */
#define HAVE_LONG_LONG_INT 1
/* Define to 1 if you have the <malloc.h> header file. */
/* #undef HAVE_MALLOC_H */
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the <openssl/aes.h> header file. */
#define HAVE_OPENSSL_AES_H 1
/* Define to 1 if you have the <openssl/bn.h> header file. */
#define HAVE_OPENSSL_BN_H 1
/* Define to 1 if you have the <openssl/camellia.h> header file. */
/* #undef HAVE_OPENSSL_CAMELLIA_H */
/* Define to 1 if you have the <openssl/cast.h> header file. */
#define HAVE_OPENSSL_CAST_H 1
/* Define to 1 if you have the <openssl/des.h> header file. */
#define HAVE_OPENSSL_DES_H 1
/* Define to 1 if you have the <openssl/dsa.h> header file. */
#define HAVE_OPENSSL_DSA_H 1
/* Define to 1 if you have the <openssl/err.h> header file. */
#define HAVE_OPENSSL_ERR_H 1
/* Define to 1 if you have the <openssl/idea.h> header file. */
/* #undef HAVE_OPENSSL_IDEA_H */
/* Define to 1 if you have the <openssl/md5.h> header file. */
#define HAVE_OPENSSL_MD5_H 1
/* Define to 1 if you have the <openssl/rand.h> header file. */
#define HAVE_OPENSSL_RAND_H 1
/* Define to 1 if you have the <openssl/rsa.h> header file. */
#define HAVE_OPENSSL_RSA_H 1
/* Define to 1 if you have the <openssl/sha.h> header file. */
#define HAVE_OPENSSL_SHA_H 1
/* Define to 1 if the system has the type `SHA256_CTX'. */
#define HAVE_SHA256_CTX 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/cdefs.h> header file. */
#define HAVE_SYS_CDEFS_H 1
/* Define to 1 if you have the <sys/file.h> header file. */
#define HAVE_SYS_FILE_H 1
/* Define to 1 if you have the <sys/mman.h> header file. */
#define HAVE_SYS_MMAN_H 1
/* Define to 1 if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define to 1 if you have the <sys/resource.h> header file. */
#define HAVE_SYS_RESOURCE_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <sys/uio.h> header file. */
#define HAVE_SYS_UIO_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if the system has the type 'unsigned long long int'. */
#define HAVE_UNSIGNED_LONG_LONG_INT 1
/* Define to 1 if you have the <zlib.h> header file. */
#define HAVE_ZLIB_H 1
/* Define to the sub-directory where libtool stores uninstalled libraries. */
#define LT_OBJDIR ".libs/"
/* Name of package */
#define PACKAGE "netpgp"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT " pEp NetPGP Team <netpgp@pep-project.org> "
/* Define to the full name of this package. */
#define PACKAGE_NAME "netpgp"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "netpgp beta0"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "netpgp"
/* Define to the home page for this package. */
#define PACKAGE_URL ""
/* Define to the version of this package. */
#define PACKAGE_VERSION "beta0"
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Version number of package */
#define VERSION "beta0"
#define OPENSSL_NO_IDEA 1
#endif

+ 0
- 432
netpgp-xcode/netpgp.xcodeproj/project.pbxproj View File

@ -1,432 +0,0 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
64A89A771EAE53DA004A3169 /* libcrypto.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64A89A761EAE53DA004A3169 /* libcrypto.a */; };
64AA9C5F1B45691C00D0F542 /* compress.c in Sources */ = {isa = PBXBuildFile; fileRef = 64AA9C3D1B45691C00D0F542 /* compress.c */; };
64AA9C601B45691C00D0F542 /* create.c in Sources */ = {isa = PBXBuildFile; fileRef = 64AA9C3E1B45691C00D0F542 /* create.c */; };
64AA9C611B45691C00D0F542 /* crypto.c in Sources */ = {isa = PBXBuildFile; fileRef = 64AA9C401B45691C00D0F542 /* crypto.c */; };
64AA9C621B45691C00D0F542 /* keyring.c in Sources */ = {isa = PBXBuildFile; fileRef = 64AA9C441B45691C00D0F542 /* keyring.c */; };
64AA9C631B45691C00D0F542 /* misc.c in Sources */ = {isa = PBXBuildFile; fileRef = 64AA9C471B45691C00D0F542 /* misc.c */; };
64AA9C641B45691C00D0F542 /* netpgp.c in Sources */ = {isa = PBXBuildFile; fileRef = 64AA9C481B45691C00D0F542 /* netpgp.c */; };
64AA9C651B45691C00D0F542 /* openssl_crypto.c in Sources */ = {isa = PBXBuildFile; fileRef = 64AA9C4C1B45691C00D0F542 /* openssl_crypto.c */; };
64AA9C661B45691C00D0F542 /* packet-parse.c in Sources */ = {isa = PBXBuildFile; fileRef = 64AA9C4D1B45691C00D0F542 /* packet-parse.c */; };
64AA9C681B45691C00D0F542 /* packet-show.c in Sources */ = {isa = PBXBuildFile; fileRef = 64AA9C501B45691C00D0F542 /* packet-show.c */; };
64AA9C691B45691C00D0F542 /* reader.c in Sources */ = {isa = PBXBuildFile; fileRef = 64AA9C531B45691C00D0F542 /* reader.c */; };
64AA9C6A1B45691C00D0F542 /* signature.c in Sources */ = {isa = PBXBuildFile; fileRef = 64AA9C551B45691C00D0F542 /* signature.c */; };
64AA9C6B1B45691C00D0F542 /* symmetric.c in Sources */ = {isa = PBXBuildFile; fileRef = 64AA9C571B45691C00D0F542 /* symmetric.c */; };
64AA9C6C1B45691C00D0F542 /* validate.c in Sources */ = {isa = PBXBuildFile; fileRef = 64AA9C591B45691C00D0F542 /* validate.c */; };
64AA9C6D1B45691C00D0F542 /* writer.c in Sources */ = {isa = PBXBuildFile; fileRef = 64AA9C5C1B45691C00D0F542 /* writer.c */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
64AA9C1E1B45686800D0F542 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "include/$(PRODUCT_NAME)";
dstSubfolderSpec = 16;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
43A6C2E41CC8D5500061B62B /* bufgap.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = bufgap.h; sourceTree = "<group>"; };
43A6C2E51CC8D5500061B62B /* create.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = create.h; sourceTree = "<group>"; };
43A6C2E61CC8D5500061B62B /* crypto.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = crypto.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
43A6C2E71CC8D5500061B62B /* defs.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = defs.h; sourceTree = "<group>"; };
43A6C2E81CC8D5500061B62B /* errors.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = errors.h; sourceTree = "<group>"; };
43A6C2E91CC8D5500061B62B /* keyring.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = keyring.h; sourceTree = "<group>"; };
43A6C2EA1CC8D5500061B62B /* memory.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = memory.h; sourceTree = "<group>"; };
43A6C2EB1CC8D5500061B62B /* netpgpdefs.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = netpgpdefs.h; sourceTree = "<group>"; };
43A6C2EC1CC8D5500061B62B /* netpgpdigest.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = netpgpdigest.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
43A6C2ED1CC8D5500061B62B /* netpgpsdk.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = netpgpsdk.h; sourceTree = "<group>"; };
43A6C2EE1CC8D5500061B62B /* packet-parse.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "packet-parse.h"; sourceTree = "<group>"; };
43A6C2EF1CC8D5500061B62B /* packet-show.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "packet-show.h"; sourceTree = "<group>"; };
43A6C2F01CC8D5500061B62B /* packet.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = packet.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
43A6C2F11CC8D5500061B62B /* readerwriter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = readerwriter.h; sourceTree = "<group>"; };
43A6C2F21CC8D5500061B62B /* signature.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = signature.h; sourceTree = "<group>"; };
43A6C2F31CC8D5500061B62B /* ssh2pgp.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ssh2pgp.h; sourceTree = "<group>"; };
43A6C2F41CC8D5500061B62B /* types.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = types.h; sourceTree = "<group>"; };
43A6C2F51CC8D5500061B62B /* validate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = validate.h; sourceTree = "<group>"; };
43A6C2F61CC8D5500061B62B /* version.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = version.h; sourceTree = "<group>"; };
43A6C2F71CC8D5500061B62B /* writer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = writer.h; sourceTree = "<group>"; };
43A6C2FE1CC8D79E0061B62B /* config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = config.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
64A89A761EAE53DA004A3169 /* libcrypto.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libcrypto.a; path = "../../OpenSSL-for-iPhone/lib/libcrypto.a"; sourceTree = "<group>"; };
64A89A7F1EAE63B7004A3169 /* README.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README.txt; sourceTree = "<group>"; };
64AA9C201B45686800D0F542 /* libnetpgp.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libnetpgp.a; sourceTree = BUILT_PRODUCTS_DIR; };
64AA9C3D1B45691C00D0F542 /* compress.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = compress.c; path = ../src/compress.c; sourceTree = "<group>"; };
64AA9C3E1B45691C00D0F542 /* create.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; lineEnding = 0; name = create.c; path = ../src/create.c; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.c; };
64AA9C401B45691C00D0F542 /* crypto.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = crypto.c; path = ../src/crypto.c; sourceTree = "<group>"; };
64AA9C441B45691C00D0F542 /* keyring.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = keyring.c; path = ../src/keyring.c; sourceTree = "<group>"; };
64AA9C471B45691C00D0F542 /* misc.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; lineEnding = 0; name = misc.c; path = ../src/misc.c; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.c; };
64AA9C481B45691C00D0F542 /* netpgp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = netpgp.c; path = ../src/netpgp.c; sourceTree = "<group>"; };
64AA9C4C1B45691C00D0F542 /* openssl_crypto.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; lineEnding = 0; name = openssl_crypto.c; path = ../src/openssl_crypto.c; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.c; };
64AA9C4D1B45691C00D0F542 /* packet-parse.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; lineEnding = 0; name = "packet-parse.c"; path = "../src/packet-parse.c"; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.c; };
64AA9C501B45691C00D0F542 /* packet-show.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "packet-show.c"; path = "../src/packet-show.c"; sourceTree = "<group>"; };
64AA9C531B45691C00D0F542 /* reader.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; lineEnding = 0; name = reader.c; path = ../src/reader.c; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.c; };
64AA9C551B45691C00D0F542 /* signature.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = signature.c; path = ../src/signature.c; sourceTree = "<group>"; };
64AA9C571B45691C00D0F542 /* symmetric.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = symmetric.c; path = ../src/symmetric.c; sourceTree = "<group>"; };
64AA9C591B45691C00D0F542 /* validate.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = validate.c; path = ../src/validate.c; sourceTree = "<group>"; };
64AA9C5C1B45691C00D0F542 /* writer.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = writer.c; path = ../src/writer.c; sourceTree = "<group>"; };
64AA9C6E1B4569CD00D0F542 /* netpgp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = netpgp.h; path = ../include/netpgp.h; sourceTree = "<group>"; };
64AA9C721B456A2600D0F542 /* config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = config.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
64AA9C1D1B45686800D0F542 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
64A89A771EAE53DA004A3169 /* libcrypto.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
43A6C2E31CC8D5500061B62B /* netpgp */ = {
isa = PBXGroup;
children = (
43A6C2FE1CC8D79E0061B62B /* config.h */,
43A6C2E41CC8D5500061B62B /* bufgap.h */,
43A6C2E51CC8D5500061B62B /* create.h */,
43A6C2E61CC8D5500061B62B /* crypto.h */,
43A6C2E71CC8D5500061B62B /* defs.h */,
43A6C2E81CC8D5500061B62B /* errors.h */,
43A6C2E91CC8D5500061B62B /* keyring.h */,
43A6C2EA1CC8D5500061B62B /* memory.h */,
43A6C2EB1CC8D5500061B62B /* netpgpdefs.h */,
43A6C2EC1CC8D5500061B62B /* netpgpdigest.h */,
43A6C2ED1CC8D5500061B62B /* netpgpsdk.h */,
43A6C2EE1CC8D5500061B62B /* packet-parse.h */,
43A6C2EF1CC8D5500061B62B /* packet-show.h */,
43A6C2F01CC8D5500061B62B /* packet.h */,
43A6C2F11CC8D5500061B62B /* readerwriter.h */,
43A6C2F21CC8D5500061B62B /* signature.h */,
43A6C2F31CC8D5500061B62B /* ssh2pgp.h */,
43A6C2F41CC8D5500061B62B /* types.h */,
43A6C2F51CC8D5500061B62B /* validate.h */,
43A6C2F61CC8D5500061B62B /* version.h */,
43A6C2F71CC8D5500061B62B /* writer.h */,
);
name = netpgp;
path = ../include/netpgp;
sourceTree = "<group>";
};
64A89A751EAE53DA004A3169 /* Frameworks */ = {
isa = PBXGroup;
children = (
64A89A761EAE53DA004A3169 /* libcrypto.a */,
);
name = Frameworks;
sourceTree = "<group>";
};
64AA9C171B45686800D0F542 = {
isa = PBXGroup;
children = (
64A89A7F1EAE63B7004A3169 /* README.txt */,
64AA9C721B456A2600D0F542 /* config.h */,
64AA9C3A1B4568DA00D0F542 /* srcref */,
64AA9C211B45686800D0F542 /* Products */,
64A89A751EAE53DA004A3169 /* Frameworks */,
);
sourceTree = "<group>";
};
64AA9C211B45686800D0F542 /* Products */ = {
isa = PBXGroup;
children = (
64AA9C201B45686800D0F542 /* libnetpgp.a */,
);
name = Products;
sourceTree = "<group>";
};
64AA9C3A1B4568DA00D0F542 /* srcref */ = {
isa = PBXGroup;
children = (
43A6C2E31CC8D5500061B62B /* netpgp */,
64AA9C6E1B4569CD00D0F542 /* netpgp.h */,
64AA9C3D1B45691C00D0F542 /* compress.c */,
64AA9C3E1B45691C00D0F542 /* create.c */,
64AA9C401B45691C00D0F542 /* crypto.c */,
64AA9C441B45691C00D0F542 /* keyring.c */,
64AA9C471B45691C00D0F542 /* misc.c */,
64AA9C481B45691C00D0F542 /* netpgp.c */,
64AA9C4C1B45691C00D0F542 /* openssl_crypto.c */,
64AA9C4D1B45691C00D0F542 /* packet-parse.c */,
64AA9C501B45691C00D0F542 /* packet-show.c */,
64AA9C531B45691C00D0F542 /* reader.c */,
64AA9C551B45691C00D0F542 /* signature.c */,
64AA9C571B45691C00D0F542 /* symmetric.c */,
64AA9C591B45691C00D0F542 /* validate.c */,
64AA9C5C1B45691C00D0F542 /* writer.c */,
);
name = srcref;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
64AA9C1F1B45686800D0F542 /* netpgp */ = {
isa = PBXNativeTarget;
buildConfigurationList = 64AA9C341B45686800D0F542 /* Build configuration list for PBXNativeTarget "netpgp" */;
buildPhases = (
64A89A781EAE5459004A3169 /* ShellScript */,
64AA9C1C1B45686800D0F542 /* Sources */,
64AA9C1D1B45686800D0F542 /* Frameworks */,
64AA9C1E1B45686800D0F542 /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = netpgp;
productName = netpgp;
productReference = 64AA9C201B45686800D0F542 /* libnetpgp.a */;
productType = "com.apple.product-type.library.static";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
64AA9C181B45686800D0F542 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0940;
ORGANIZATIONNAME = "Edouard Tisserant";
TargetAttributes = {
64AA9C1F1B45686800D0F542 = {
CreatedOnToolsVersion = 6.3.2;
};
};
};
buildConfigurationList = 64AA9C1B1B45686800D0F542 /* Build configuration list for PBXProject "netpgp" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 64AA9C171B45686800D0F542;
productRefGroup = 64AA9C211B45686800D0F542 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
64AA9C1F1B45686800D0F542 /* netpgp */,
);
};
/* End PBXProject section */
/* Begin PBXShellScriptBuildPhase section */
64A89A781EAE5459004A3169 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if [ ! -f ../../OpenSSL-for-iPhone/lib/libcrypto.a ]; then\ncd ../../OpenSSL-for-iPhone/\n./build-libssl.sh --branch=1.1.0 --targets=\"ios-sim-cross-x86_64 ios-sim-cross-i386 ios64-cross-arm64 ios-cross-armv7 ios-cross-armv7s\"\nexit 0\nfi";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
64AA9C1C1B45686800D0F542 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
64AA9C6A1B45691C00D0F542 /* signature.c in Sources */,
64AA9C681B45691C00D0F542 /* packet-show.c in Sources */,
64AA9C641B45691C00D0F542 /* netpgp.c in Sources */,
64AA9C6C1B45691C00D0F542 /* validate.c in Sources */,
64AA9C5F1B45691C00D0F542 /* compress.c in Sources */,
64AA9C6D1B45691C00D0F542 /* writer.c in Sources */,
64AA9C691B45691C00D0F542 /* reader.c in Sources */,
64AA9C661B45691C00D0F542 /* packet-parse.c in Sources */,
64AA9C621B45691C00D0F542 /* keyring.c in Sources */,
64AA9C631B45691C00D0F542 /* misc.c in Sources */,
64AA9C651B45691C00D0F542 /* openssl_crypto.c in Sources */,
64AA9C6B1B45691C00D0F542 /* symmetric.c in Sources */,
64AA9C611B45691C00D0F542 /* crypto.c in Sources */,
64AA9C601B45691C00D0F542 /* create.c in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
64AA9C321B45686800D0F542 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../../OpenSSL-for-iPhone/include",
"$(SRCROOT)/../include/",
);
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LIBRARY_SEARCH_PATHS = "";
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
VALID_ARCHS = "arm64 armv7s armv7";
};
name = Debug;
};
64AA9C331B45686800D0F542 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;