summaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
...
* - Add ESP authentication support (last part of #168972, based on a patch byMiloslav Trmac2006-07-092-27/+32
* Don't use an obsolete peers_certfile syntax (part of #168972, patch byMiloslav Trmac2006-07-081-1/+1
* - Allow disabling AH or ESP with authomatic keying (part of #168972, based onMiloslav Trmac2006-07-082-42/+21
* Eliminate as much duplicated code as possible (part of #168972, based on aMiloslav Trmac2006-07-082-122/+64
* Move $SRC initialization before first useMiloslav Trmac2006-07-082-9/+8
* Prevent IPsec tunelling of local traffic when tunnel subnets overlap (#150862)Miloslav Trmac2006-07-082-10/+29
* add check for IKE_METHOD (#197576, <john_smyth@mail.ru>)Bill Nottingham2006-07-051-0/+1
* Small update for Greek initscriptsDimitris Michelinakis2006-07-041-23/+23
* Updated Malay translationSharuzzaman Ahmat Raslan2006-07-041-15/+10
* Updated ml.poAni Peter2006-07-031-101/+101
* ignore alias devices (#186355)Bill Nottingham2006-07-011-2/+9
* Updated ml.poAni Peter2006-06-301-738/+742
* don't mark ifup/ifdown as %config (#61334)Bill Nottingham2006-06-291-2/+2
* fix pl typos (Marcin Garski (mgarski@post.pl))Bill Nottingham2006-06-291-4/+4
* add mtabBill Nottingham2006-06-191-0/+1
* Fix daemon --pidfile=... (#195341, patch by Steven AugartMiloslav Trmac2006-06-171-1/+1
* Updated Oriya translationSubhransu Behera2006-06-141-51/+53
* Updated Oriya translationSubhransu Behera2006-06-141-33/+34
* Updated Oriya translationSubhransu Behera2006-06-131-118/+124
* done rough translations for mr_INRahul Bhalerao2006-06-131-91/+168
* 8.35-1r8-35Bill Nottingham2006-06-122-1/+90
* readonly root enhancments (modified from <law@redhat.com>, #193164)Bill Nottingham2006-06-122-3/+90
* Updated Oriya translationSubhransu Behera2006-06-121-32/+36
* Updated Oriya translationSubhransu Behera2006-06-121-70/+71
* Updated Oriya translationSubhransu Behera2006-06-121-101/+109
* Updated Malay translationSharuzzaman Ahmat Raslan2006-06-111-11/+6
* Updated Oriya translationSubhransu Behera2006-06-101-13/+12
* Minor changes to Greek translationDimitris Michelinakis2006-06-091-64/+64
* Updated Oriya translationSubhransu Behera2006-06-081-24/+22
* Minor change in Greek translationDimitris Michelinakis2006-06-081-695/+938
* Updated Oriya translationSubhransu Behera2006-06-071-43/+43
* Updated Oriya translationSubhransu Behera2006-06-071-96/+101
* Updated Oriya translationSubhransu Behera2006-06-071-113/+119
* Add /etc/crypttab documentation.Miloslav Trmac2006-06-072-1/+110
* More Greek translation updates to initscriptsDimitris Michelinakis2006-06-061-75/+75
* Clarify killproc usage message (#193711)Miloslav Trmac2006-06-051-1/+1
* Updated and improved Polish translationPiotr Drąg2006-06-031-4/+4
* More updates to initscripts Greek translationDimitris Michelinakis2006-06-021-49/+49
* First steps to translate initscripts to GreekDimitris Michelinakis2006-06-011-0/+2666
* Add encrypted swap and non-root filesystem support (#127378, based onMiloslav Trmac2006-06-012-1/+156
* Document BRIDGE= (#192576)Miloslav Trmac2006-05-301-0/+3
* re_translate fuzzy words...of the current po fileJoel Gump2006-05-291-120/+61
* use the right option (#193177, <david@lovesunix.net>)Bill Nottingham2006-05-251-1/+1
* googlespell prefers one l. words takes both.Bill Nottingham2006-05-251-1/+1
* allow for sulogin instead of automatic relabeling (<dwalsh@redhat.com>)Bill Nottingham2006-05-251-20/+39
* updater8-34Bill Nottingham2006-05-231-0/+4
* duh.Bill Nottingham2006-05-231-2/+2
* integrate s390 patch - just check for hwclock before running itBill Nottingham2006-05-234-30/+2
* fix patchBill Nottingham2006-05-231-1/+1
* 8.34-1Bill Nottingham2006-05-232-1/+119
56withRSA")) return SignatureAlgorithm.RSASignatureWithSHA256Digest; else if (algname.equals("SHA512withRSA")) return SignatureAlgorithm.RSASignatureWithSHA512Digest; else if (algname.equals("SHA1withEC")) return SignatureAlgorithm.ECSignatureWithSHA1Digest; else if (algname.equals("SHA256withEC")) return SignatureAlgorithm.ECSignatureWithSHA256Digest; else if (algname.equals("SHA384withEC")) return SignatureAlgorithm.ECSignatureWithSHA384Digest; else if (algname.equals("SHA512withEC")) return SignatureAlgorithm.ECSignatureWithSHA512Digest; return null; } public static String stripBrackets(String s) { if (s == null) { return s; } if ((s.startsWith("-----BEGIN CERTIFICATE-----")) && (s.endsWith("-----END CERTIFICATE-----"))) { return (s.substring(27, (s.length() - 25))); } // To support Thawte's header and footer if ((s.startsWith("-----BEGIN PKCS #7 SIGNED DATA-----")) && (s.endsWith("-----END PKCS #7 SIGNED DATA-----"))) { return (s.substring(35, (s.length() - 33))); } return s; } public static String stripCRLBrackets(String s) { if (s == null) { return s; } if ((s.startsWith("-----BEGIN CERTIFICATE REVOCATION LIST-----")) && (s.endsWith("-----END CERTIFICATE REVOCATION LIST-----"))) { return (s.substring(43, (s.length() - 41))); } return s; } public static String stripCertBrackets(String s) { return stripBrackets(s); } // private static BASE64Decoder mDecoder = new BASE64Decoder(); public static X509CertImpl mapCert(String mime64) throws IOException { mime64 = stripCertBrackets(mime64.trim()); String newval = normalizeCertStr(mime64); // byte rawPub[] = mDecoder.decodeBuffer(newval); byte rawPub[] = OSUtil.AtoB( newval ); X509CertImpl cert = null; try { cert = new X509CertImpl(rawPub); } catch (CertificateException e) { } return cert; } public static X509Certificate[] mapCertFromPKCS7(String mime64) throws IOException { mime64 = stripCertBrackets(mime64.trim()); String newval = normalizeCertStr(mime64); // byte rawPub[] = mDecoder.decodeBuffer(newval); byte rawPub[] = OSUtil.AtoB( newval ); PKCS7 p7 = null; try { p7 = new PKCS7(rawPub); } catch (Exception e) { throw new IOException( "p7 is null" ); } return p7.getCertificates(); } public static X509CRL mapCRL(String mime64) throws IOException { mime64 = stripCRLBrackets(mime64.trim()); String newval = normalizeCertStr(mime64); // byte rawPub[] = mDecoder.decodeBuffer(newval); byte rawPub[] = OSUtil.AtoB( newval ); X509CRL crl = null; try { crl = new X509CRLImpl(rawPub); } catch (Exception e) { } return crl; } public static X509CRL mapCRL1(String mime64) throws IOException { mime64 = stripCRLBrackets(mime64.trim()); byte rawPub[] = OSUtil.AtoB(mime64); X509CRL crl = null; try { crl = new X509CRLImpl(rawPub); } catch (Exception e) { throw new IOException(e.toString()); } return crl; } public static String normalizeCertStr(String s) { String val = ""; for (int i = 0; i < s.length(); i++) { if (s.charAt(i) == '\n') { continue; } else if (s.charAt(i) == '\r') { continue; } else if (s.charAt(i) == '"') { continue; } else if (s.charAt(i) == ' ') { continue; } val += s.charAt(i); } return val; } public static String normalizeCertStrAndReq(String s) { String val = ""; for (int i = 0; i < s.length(); i++) { if (s.charAt(i) == '\n') { continue; } else if (s.charAt(i) == '\r') { continue; } else if (s.charAt(i) == '"') { continue; } val += s.charAt(i); } return val; } }