/[smeserver]/rpms/e-smith-base+ldap/sme7/e-smith-base-4.18.1-dateManip.patch
ViewVC logotype

Annotation of /rpms/e-smith-base+ldap/sme7/e-smith-base-4.18.1-dateManip.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Apr 22 21:32:15 2008 UTC (16 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-base+ldap-4_19_1-13_el4_sme, e-smith-base+ldap-4_19_1-16_el4_sme, e-smith-base+ldap-4_19_1-14_el4_sme, e-smith-base+ldap-4_19_1-21_el4_sme, e-smith-base+ldap-4_19_1-30_el4_sme, e-smith-base+ldap-4_19_1-18_el4_sme, e-smith-base+ldap-4_19_1-28_el4_sme, e-smith-base+ldap-4_19_1-26_el4_sme, e-smith-base+ldap-4_19_1-19_el4_sme, e-smith-base+ldap-4_19_1-25_el4_sme, e-smith-base+ldap-4_19_1-20_el4_sme, e-smith-base+ldap-4_19_1-23_el4_sme, e-smith-base+ldap-4_19_1-17_el4_sme, e-smith-base+ldap-4_19_1-29_el4_sme, e-smith-base+ldap-4_19_1-24_el4_sme, e-smith-base+ldap-4_19_1-12_el4_sme, e-smith-base+ldap-4_19_1-22_el4_sme
* Tue Apr 22 2008 Shad L. Lords <slords@mail.com> 4.19.1-12
- Remove use of Date::Manip from ssl.crt [SME: 3155]

1 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' e-smith-base-4.18.1/root/etc/e-smith/templates/home/e-smith/ssl.crt mezzanine_patched_e-smith-base-4.18.1/root/etc/e-smith/templates/home/e-smith/ssl.crt
2     --- e-smith-base-4.18.1/root/etc/e-smith/templates/home/e-smith/ssl.crt 2008-03-26 10:49:00.000000000 -0600
3     +++ mezzanine_patched_e-smith-base-4.18.1/root/etc/e-smith/templates/home/e-smith/ssl.crt 2008-04-22 15:25:43.000000000 -0600
4     @@ -1,6 +1,6 @@
5     {
6     use constant KEYLIFEINDAYS => 365;
7     - use Date::Manip;
8     + use Date::Parse;
9     use Cwd;
10     my $here = getcwd;
11    
12     @@ -24,9 +24,10 @@
13     {
14     my $expire = `openssl x509 -enddate -noout -in $crt`;
15     $expire =~ s/^notAfter=//;
16     - $expire =~ s#(\d{4}) (\w{3})#$2 $1#;
17     + $expire = str2time($expire);
18     + my $ttl_days = ($expire - time()) / 60 / 60 / 24;
19    
20     - if ( Date_Cmp('today', ParseDate($expire)) < 0 ) {
21     + if ( $ttl_days > 2 ) {
22     my $expected_issuer = '/C=--' .
23     '/ST=----';
24     $expected_issuer .= '/L=' . ($defaultCity ? $defaultCity : 'Newbury');

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed