From 58755c4972128923f12cc1511bd24c36912bf890 Mon Sep 17 00:00:00 2001
From: Marc Alexander <admin@m-a-styles.de>
Date: Wed, 21 Aug 2013 16:31:57 -0500
Subject: [feature/passwords] Add get_name() method to drivers

This will allow us to actually properly differentiate between the available
drivers.

PHPBB3-11610
---
 phpBB/phpbb/crypto/driver/base.php | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

(limited to 'phpBB/phpbb/crypto/driver/base.php')

diff --git a/phpBB/phpbb/crypto/driver/base.php b/phpBB/phpbb/crypto/driver/base.php
index c134122174..f75031dabd 100644
--- a/phpBB/phpbb/crypto/driver/base.php
+++ b/phpBB/phpbb/crypto/driver/base.php
@@ -26,6 +26,9 @@ abstract class phpbb_crypto_driver_base implements phpbb_crypto_driver_interface
 	/** @var phpbb_crypto_driver_helper */
 	protected $helper;
 
+	/** @var driver name */
+	protected $name;
+
 	/**
 	* Constructor of crypto driver object
 	*
@@ -44,4 +47,22 @@ abstract class phpbb_crypto_driver_base implements phpbb_crypto_driver_interface
 	{
 		return true;
 	}
+
+	/**
+	* @inheritdoc
+	*/
+	public function get_name()
+	{
+		return $this->name;
+	}
+
+	/**
+	* Set driver name
+	*
+	* @param string $name Driver name
+	*/
+	public function set_name($name)
+	{
+		$this->name = $name;
+	}
 }
-- 
cgit v1.2.1