array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'eventsslcontext.construct.php', 1 => 'EventSslContext::__construct', ), 'up' => array ( 0 => 'class.eventsslcontext.php', 1 => 'EventSslContext', ), 'prev' => array ( 0 => 'class.eventsslcontext.php', 1 => 'EventSslContext', ), 'next' => array ( 0 => 'class.eventutil.php', 1 => 'EventUtil', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventsslcontext/construct.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL event >= 1.2.6-beta)
EventSslContext::__construct — Constructs an OpenSSL context for use with Event classes
Creates SSL context holding pointer to
SSL_CTX
(see the system manual).
method
One of
EventSslContext::*_METHOD
constants
.
options
Associative array of SSL context options One of
EventSslContext::OPT_*
constants
.
Örnek 1 EventSslContext::__construct() example
<?php
$ctx = new EventSslContext(EventSslContext::SSLv3_SERVER_METHOD, array(
EventSslContext::OPT_LOCAL_CERT => $local_cert,
EventSslContext::OPT_LOCAL_PK => $local_pk,
EventSslContext::OPT_PASSPHRASE => "echo server",
EventSslContext::OPT_VERIFY_PEER => true,
EventSslContext::OPT_ALLOW_SELF_SIGNED => false,
));
?>