openssl_x509_checkpurpose

 int openssl_x509_checkpurpose ( mixed $x509cert , int $purpose [, array $cainfo = array() [, string $untrustedfile ]] ) 

説明

openssl_x509_checkpurpose() examines a certificate to see if it can be used for the specified purpose.

戻り値

Returns TRUE if the certificate can be used for the intended purpose, FALSE if it cannot, or -1 on error.