[freeside-commits] freeside/FS/FS svc_cert.pm,1.1.2.4,1.1.2.5
Ivan,,,
ivan at wavetail.420.am
Sun Nov 7 16:02:01 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv3508/FS/FS
Modified Files:
Tag: FREESIDE_2_1_BRANCH
svc_cert.pm
Log Message:
certificates ala communigate, RT#7515
Index: svc_cert.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_cert.pm,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -w -d -r1.1.2.4 -r1.1.2.5
--- svc_cert.pm 7 Nov 2010 23:47:04 -0000 1.1.2.4
+++ svc_cert.pm 8 Nov 2010 00:01:59 -0000 1.1.2.5
@@ -335,10 +335,13 @@
#notAfter=Nov 6 05:07:42 2012 GMT
#serial=B1DBF1A799EF207B
-sub check_certificate {
- my $self = shift;
+sub check_certificate { shift->check_x509('certificate'); }
+sub check_cacert { shift->check_x509('cacert'); }
- my $in = $self->certificate;
+sub check_x509 {
+ my( $self, $field ) = ( shift, shift );
+
+ my $in = $self->$field;
run( [qw( openssl x509 -noout -subject -issuer -dates -serial )],
'<'=>\$in,
'>pipe'=>\*OUT, '2>'=>'/dev/null'
More information about the freeside-commits
mailing list