]> git.mjollnir.org Git - moodle.git/commitdiff
mnet: Remove bogus XYZ prefixes from last commit MDL-8070
authordonal72 <donal72>
Fri, 5 Jan 2007 03:31:05 +0000 (03:31 +0000)
committerdonal72 <donal72>
Fri, 5 Jan 2007 03:31:05 +0000 (03:31 +0000)
mnet/environment.php

index 541867821f855aae93f2dab5d44e0debdb779df9..5b8e523e4e51468e6ce8af994e14fbe6286fc3cd 100644 (file)
@@ -87,8 +87,8 @@ class mnet_environment {
         }
 
         if ($this->public_key_expires > time()) {
-            $this->keypair['privatekey'] = XYZopenssl_pkey_get_private($this->keypair['keypair_PEM']);
-            $this->keypair['publickey']  = XYZopenssl_pkey_get_public($this->keypair['certificate']);
+            $this->keypair['privatekey'] = openssl_pkey_get_private($this->keypair['keypair_PEM']);
+            $this->keypair['publickey']  = openssl_pkey_get_public($this->keypair['certificate']);
         } else {
             // Key generation/rotation
 
@@ -130,7 +130,7 @@ class mnet_environment {
         $this->keypair = array();
         $this->keypair = mnet_generate_keypair();
         $this->public_key         = $this->keypair['certificate'];
-        $details                  = XYZopenssl_x509_parse($this->public_key);
+        $details                  = openssl_x509_parse($this->public_key);
         $this->public_key_expires = $details['validTo_time_t'];
 
         set_config('openssl', implode('@@@@@@@@', $this->keypair), 'mnet');
@@ -141,14 +141,14 @@ class mnet_environment {
     function get_private_key() {
         if (empty($this->keypair)) $this->get_keypair();
         if (isset($this->keypair['privatekey'])) return $this->keypair['privatekey'];
-        $this->keypair['privatekey'] = XYZopenssl_pkey_get_private($this->keypair['keypair_PEM']);
+        $this->keypair['privatekey'] = openssl_pkey_get_private($this->keypair['keypair_PEM']);
         return $this->keypair['privatekey'];
     }
 
     function get_public_key() {
         if (!isset($this->keypair)) $this->get_keypair();
         if (isset($this->keypair['publickey'])) return $this->keypair['publickey'];
-        $this->keypair['publickey'] = XYZopenssl_pkey_get_public($this->keypair['certificate']);
+        $this->keypair['publickey'] = openssl_pkey_get_public($this->keypair['certificate']);
         return $this->keypair['publickey'];
     }
 
@@ -157,7 +157,7 @@ class mnet_environment {
      * signs the hash.
      */
     function sign_message($message) {
-        $bool = XYZopenssl_sign($message, $signature, $this->get_private_key());
+        $bool = openssl_sign($message, $signature, $this->get_private_key());
         return $signature;
     }
 }