summaryrefslogtreecommitdiffstats
path: root/vpn
Commit message (Collapse)AuthorAgeFilesLines
* Phase 2 of test cleanup: moving test files from AndroidTests closer to their ↵Neal Nguyen2010-01-293-0/+207
| | | | | | | | | sources. Most of these are file moves; a couple notable exceptions are the changes due to the move, and fixing up test code: - database/DatabaseCursorTest.java - database/DatabaseStatementTest.java - net/UriTest.java
* Fix broken build.Hung-ying Tyan2009-11-251-1/+1
|
* Encrypted File Systems Project. Installer modifications.Oscar Montemayor2009-11-241-2/+12
| | | | Started to modify isntaller for data redirection to a secure location.
* Remove deprecated VpnType.getDescription().Hung-ying Tyan2009-09-301-4/+0
|
* make vpn type strings i18n ready.Hung-ying Tyan2009-09-301-8/+14
|
* Simplifies err code propagation.Hung-ying Tyan2009-08-281-7/+14
| | | | | | | | | * Other changes + Re-assign err codes in VpnManager. + Add new err codes: REMOTE_PPP_HUNG_UP, PPP_NEGOTIATION_FAILED. + Delete the state file only if it exists (to prevent logging an unable-to-unlink error). + Extend timeout to 40 seconds.
* Issue an error when VPN connection is lost.Hung-ying Tyan2009-08-031-0/+2
| | | | | | | + Add new error code CONNECTION_LOST to VpnManager. + Make VpnService call onError() instead of onDisconnect() when connection is lost. + Make VpnService broadcast CONNECTION_LOST when that happens.
* Add the encryption option to PptpProfile parcel.Hung-ying Tyan2009-07-301-0/+14
|
* Add state saving mechanism to support proc restartHung-ying Tyan2009-07-302-0/+16
| | | | | | | | | | | | | | | | | Also... + stop daemons before getting server IP; + remove setForeground(); + add the DBG flag for Log.d calls. PatchSet 3: + add CHALLENGE_ERROR and REMOTE_HUNG_UP to VpnManager + broadcast new error codes in VpnService + check local IP change instead of dns change + move removeStates() to VpnService.onFinalCleanUp() PatchSet 7: + add encryption flag to PptpProfile + PptpService and MtpdHelper are revised accordingly
* Make VPN connect even when DNS is not present and other fixes.Hung-ying Tyan2009-07-141-1/+6
| | | | | | | | * Changes: + As title. + Add two new states to VpnState: UNKNOWN and UNUSABLE. + Add more debug messages when stopping a service and when DNS being overridden.
* Add error code in vpn connectivity broadcast.Hung-ying Tyan2009-07-131-1/+20
| | | | | | | | | | | | | | | * Changes + Add VpnConnectingError.java. + Broadcast the error returned by daemons. + Add error codes to VpnManager.java. + Add error code to VpnManager.broadcastConnectivity(). Patch Set 4: + Replace VPN_UP with VPN_STATUS in response to ip-up-vpn changes. + Make VpnServiceBinder a foreground service so that it won't be interrupted by the system. Patch Set 5: + Remove the support of returning 0 from daemon and restart socket in AndroidServiceProxy.
* Add PPTP, L2TP/IPSec preshared key and other fixes.Hung-ying Tyan2009-06-2610-24/+146
| | | | | | | | | | | | | | | | | | | | | | | | | * Changes + Add PptpProfile.java, PptpService.java. + Add L2tpIpsecPskProfile.java + Add PPTP and L2TP_IPSEC_PSK entries in VpnType.java. + Add the secret option to L2tpProfile.java and have L2tpIpsecProfile extend it. + Add MtpdHelper to send common PPP options. + Add getGatewayIp() to VpnService(). + Revise VpnService.reallyGetHostIp(). Patch Set 6, 7, 8: + Add L2TP secret flag in L2tpProfile. Patch Set 9: + Add description to VpnType. Patch Set 11: + Pass ipparam to mtpd. Patch Set 12: + Add L2TP secret support + Fix string constants
* Remove SingleServerProfile.Hung-ying Tyan2009-06-153-28/+2
| | | | End of refactoring out SingleServerProfile.java.
* On the way of refactoring out SingleServerProfile.java.Hung-ying Tyan2009-06-152-21/+25
| | | | | | | + Move mServerName from SingleServerProfile and VpnProfile. + Add mSavedUsername to VpnProfile. + Keep empty SingleServerProfile to not break the classes that use it. + Remove use of SingleServerProfile from VpnService.java.
* Add the VPN services package, VPN service base classes and L2tpIpsecService.Hung-ying Tyan2009-06-126-77/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add android.security.Keystore. This is a quick solution. Will be evolved to a more mature implementation. PATCH SET 2: + Add VpnServiceBinder to hide VpnService and its subclasses. + Add sendCommand2() to AndroidServiceProxy to work with the latest mtpd. PATCH SET 3: + Rebase to catch up with new commits; no changes made. PATCH SET 4: + Remove/comment out @Override on interface methods to be compilable for Java 1.5. PATCH SET 5: + Add L2tpService.java. + Make VpnService to work on SingleServerProfile; add serverIp to connect(); set system property "net.vpn.server_ip"; and move getPppOptionFilePath() from L2tpIpsecService to VpnService + Revise VpnManager to start VpnService without worrying about which type (as the type info is in VpnProfile) + Remove installation stuff from VpnManager PATCH SET 6: + Fix PATCH SET 5 (the patch was messed up). Please ignore PATCH SET 5. PATCH SET 7: + Fix styles. PATCH SET 8: + Add CANCELLED to VpnState. PATCH SET 9: + Make VpnProfile serializable (in order to save them to persistent storage) PATCH SET 10: + Remove Keystore.java as it's added in another CL.
* Fix the buildRomain Guy2009-06-081-4/+0
|
* First-time check-in of the VPN APIs.Hung-ying Tyan2009-06-099-0/+659
Patch Set 2: - Fixed style issues raised by cywang. Patch Set 3: - Hide everything - Make VpnProfile parcelable Patch Set 4: - Add license notice