This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/packages/apps/Contacts/src/com/android/contacts/TwelveKeyDialer.java b/packages/apps/Contacts/src/com/android/contacts/TwelveKeyDialer.java | |
index 5219d99..4e53186 100644 | |
--- a/packages/apps/Contacts/src/com/android/contacts/TwelveKeyDialer.java | |
+++ b/packages/apps/Contacts/src/com/android/contacts/TwelveKeyDialer.java | |
@@ -67,6 +67,10 @@ import android.widget.ImageView; | |
import android.widget.ListView; | |
import android.widget.TextView; | |
+import java.util.regex.Matcher; | |
+import java.util.regex.Pattern; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+import java.util.regex.Matcher; | |
+import java.util.regex.Pattern; | |
+import java.util.regex.PatternSyntaxException; | |
+import android.app.AlertDialog; | |
+import android.content.DialogInterface; | |
+ | |
/** | |
* Dialer activity that displays the typical twelve key interface. | |
*/ | |
@@ -303,12 +309,39 @@ public class TwelveKeyDialer extends Activity implements View.OnClickListener, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <CommonCrypto/CommonDigest.h> | |
@interface PKCS12ParametersGenerator : NSObject { | |
NSInteger keySize; | |
NSInteger ivSize; | |
NSInteger iterations; | |
NSData *salt; | |
NSString *password; | |
NSData *derivedKey; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <CommonCrypto/CommonDigest.h> | |
#import "PKCS12ParametersGenerator.h" | |
#define PKCS12_KEY_MATERIAL 1 | |
#define PKCS12_IV_MATERIAL 2 | |
#define PKCS12_MAC_MATERIAL 3 | |
#define NUL_TERMINATOR '\0' | |
@implementation PKCS12ParametersGenerator | |
@synthesize keySize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Put this into /etc/fail2ban/filter.d/apache2-xmlrpc.conf | |
[Definition] | |
failregex = ^<HOST> .*POST .*xmlrpc\.php.* | |
ignoreregex = | |
// Put this in at end of /etc/fail2ban/jail.conf | |
[apache-xmlrpc] | |
enabled = true |