[php-src] PR #20346: Function to look up Object IDs

From: Date: Thu, 30 Oct 2025 23:19:40 +0000
Subject: [php-src] PR #20346: Function to look up Object IDs
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-33863@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20346 Author: StephenWall Add a function to lookup and return an OID, short name, and long name, given a string containing any one of those, for all OIDs known to OpenSSL. Examples: ``` php > var_export(openssl_oid_lookup("CN")); array ( 'oid' => '2.5.4.3', 'lname' => 'commonName', 'sname' => 'CN', ) php > var_export(openssl_oid_lookup("unstructuredName")); array ( 'oid' => '1.2.840.113549.1.9.2', 'lname' => 'unstructuredName', ) php > var_export(openssl_oid_lookup("1.2.3.4.5")); array ( 'oid' => '1.2.3.4.5', ) php > var_export(openssl_oid_lookup("junk")); false ```

« previous php.git-pulls (#33863) next »