| 1 | #!perl -w | ||||||||||
| 2 | |||||||||||
| 3 | package Crypt::OpenSSL::CA::Inline::C; | ||||||||||
| 4 | |||||||||||
| 5 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 5 | ▶ | use XSLoader; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 295 | ▶ | sub import { | ||||||||
|
Subroutine
import: called CC=3 SCAR=11.0
| |||||||||||
| 9 | 295 | my ($class, $stuff) = @_; | |||||||||
| 10 | 295 | ▶ | return if ! defined $stuff; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | 295 | ▶ | return if $stuff eq "__END__"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | |||||||||||
| 13 | 290 | my ($package) = caller; | |||||||||
| 14 | 5 | ▶ | no strict "refs"; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | 290 | push @{$package."::ISA"}, qw(XSLoader); | |||||||||
| 16 | 5 | ▶ | { no warnings "redefine"; XSLoader::load($package); } | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | =head1 NAME | ||||||||||
| 20 | |||||||||||
| 21 | Crypt::OpenSSL::CA::Inline::C - The Inline magic (or lack thereof) for | ||||||||||
| 22 | Crypt::OpenSSL::CA | ||||||||||
| 23 | |||||||||||
| 24 | =head1 SYNOPSIS | ||||||||||
| 25 | |||||||||||
| 26 | use Crypt::OpenSSL::CA::Inline::C $and_the_rest_is_ignored; | ||||||||||
| 27 | |||||||||||
| 28 | # ... | ||||||||||
| 29 | |||||||||||
| 30 | use Crypt::OpenSSL::CA::Inline::C "__END__"; | ||||||||||
| 31 | |||||||||||
| 32 | =head1 DESCRIPTION | ||||||||||
| 33 | |||||||||||
| 34 | This package simply loads the DLLs that contain the parts of | ||||||||||
| 35 | L<Crypt::OpenSSL::CA> that are made of XS code. It is a stubbed-down | ||||||||||
| 36 | version of the full-fledged I<Crypt::OpenSSL::CA::Inline::C> that | ||||||||||
| 37 | replaces the real thing at module install time. | ||||||||||
| 38 | |||||||||||
| 39 | There is more to I<Crypt::OpenSSL::CA::Inline::C>, such as the ability | ||||||||||
| 40 | to dynamically modify and recompile the C code snippets in | ||||||||||
| 41 | I<Crypt::OpenSSL::CA>'s code source. But in order to grasp hold of its | ||||||||||
| 42 | power, you have to use the full source code tarball and not just the | ||||||||||
| 43 | installed version. | ||||||||||
| 44 | |||||||||||
| 45 | =cut | ||||||||||
| 46 | |||||||||||
| 47 | 5 | 1; | |||||||||
| 48 | |||||||||||