summaryrefslogtreecommitdiff
path: root/pppd/pppcrypt.h
diff options
context:
space:
mode:
authorChung-yih Wang <cywang@google.com>2009-04-14 16:37:04 +0800
committerChung-yih Wang <cywang@google.com>2009-04-21 15:24:09 +0800
commite7f221f12403dcb4081d08e28c54d3b2a1ab05ee (patch)
treef3504ceeef3b634c8f0e4a0858435114dad11f14 /pppd/pppcrypt.h
parent8ad0dd2a5c5f23cd210aedba72a43e48026e7436 (diff)
downloadppp-e7f221f12403dcb4081d08e28c54d3b2a1ab05ee.tar.gz
This change is for enabling the pppd for vpn authentication and setup.
It includes: 1. Enable the CHAPMS authentication for talking to MS vpn server. 2. Reuse the message digest/hashing functions in openssl instead of the md4, md5 and sha1 functions in the package to save the space. 3. Enable the execution the ip-up/ip-down script on Android. Update: add comment and replace tab with spaces.
Diffstat (limited to 'pppd/pppcrypt.h')
-rw-r--r--pppd/pppcrypt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pppd/pppcrypt.h b/pppd/pppcrypt.h
index adcdcbc..33b956d 100644
--- a/pppd/pppcrypt.h
+++ b/pppd/pppcrypt.h
@@ -38,8 +38,12 @@
#endif
#ifndef USE_CRYPT
+#ifdef ANDROID_CHANGES
+#include <openssl/des.h>
+#else
#include <des.h>
#endif
+#endif
extern bool DesSetkey __P((u_char *));
extern bool DesEncrypt __P((u_char *, u_char *));