[freeside-commits] freeside/FS/FS svc_cert.pm,1.3,1.4
Ivan,,,
ivan at wavetail.420.am
Sun Nov 7 16:02:00 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv3493/FS/FS
Modified Files:
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.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- svc_cert.pm 7 Nov 2010 23:47:03 -0000 1.3
+++ svc_cert.pm 8 Nov 2010 00:01:58 -0000 1.4
@@ -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