Skip to content

Commit

Permalink
shutdown/close added
Browse files Browse the repository at this point in the history
  • Loading branch information
sergot committed Jul 9, 2014
1 parent 98f2870 commit 6d7e4d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/OpenSSL.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ method read(Int $n, Bool :$bin = False) {
return $bin ?? $buf !! $carray[0..$read]>>.chr.join('');
}

method shutdown {
OpenSSL::SSL::SSL_shutdown($.ssl);
}

method close {
self.shutdown;
}

sub get_buf(int32) returns CArray[uint8] is native('libbuf') { * }

sub str-to-carray(Str $s) {
Expand Down

0 comments on commit 6d7e4d1

Please sign in to comment.