| 1 | package Twiggy::TLS::Info; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | sub new { | ||
| 7 | my ($class, $sock) = @_; | ||
| 8 | |||
| 9 | bless {sock => $sock}, $class | ||
| 10 | } | ||
| 11 | |||
| 12 | sub client_certificate { | ||
| 13 | my $self = shift; | ||
| 14 | |||
| 15 | $self->{sock}->peer_certificate(@_); | ||
| 16 | } | ||
| 17 | |||
| 18 | sub cipher { | ||
| 19 | my $self = shift; | ||
| 20 | |||
| 21 | $self->{sock}->get_cipher; | ||
| 22 | } | ||
| 23 | |||
| 24 | 1; | ||
| 25 | __END__ |