mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-08 03:54:20 +01:00
Cosmetic changes.
This commit is contained in:
parent
f9fd53046a
commit
1dab5c64aa
@ -1,4 +1,4 @@
|
|||||||
<?php # -*- php -*-
|
<?php
|
||||||
|
|
||||||
# Copyright (c) 2009-2013 Yubico AB
|
# Copyright (c) 2009-2013 Yubico AB
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
@ -35,10 +35,10 @@ if (file_exists('/etc/yubico/val/config-db.php'))
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// 'oci:oracledb' for Oracle DB (with OCI library)
|
// 'oci:oracledb' for Oracle DB (with OCI library)
|
||||||
$dbtype='mysql';
|
$dbtype = 'mysql';
|
||||||
$dbuser='ykval_verifier';
|
$dbuser = 'ykval_verifier';
|
||||||
$dbpass='yourpassword';
|
$dbpass = 'yourpassword';
|
||||||
$dbname='ykval';
|
$dbname = 'ykval';
|
||||||
}
|
}
|
||||||
|
|
||||||
# for the validation interface.
|
# for the validation interface.
|
||||||
@ -99,12 +99,13 @@ $baseParams['__YKVAL_KSM_CURL_OPTS__'] = array(
|
|||||||
|
|
||||||
// Returns an array of YK-KSM URLs for decrypting $otp for $client.
|
// Returns an array of YK-KSM URLs for decrypting $otp for $client.
|
||||||
// The URLs must be fully qualified, i.e., containing the OTP itself.
|
// The URLs must be fully qualified, i.e., containing the OTP itself.
|
||||||
function otp2ksmurls ($otp, $client) {
|
function otp2ksmurls ($otp, $client)
|
||||||
|
{
|
||||||
//if ($client == 42) {
|
//if ($client == 42) {
|
||||||
// return array("https://another-ykkms.example.com/wsapi/decrypt?otp=$otp");
|
// return array("https://another-ykkms.example.com/wsapi/decrypt?otp=$otp");
|
||||||
//}
|
//}
|
||||||
|
|
||||||
//if (preg_match ("/^dteffujehknh/", $otp)) {
|
//if (preg_match("/^dteffujehknh/", $otp)) {
|
||||||
// return array("https://different-ykkms.example.com/wsapi/decrypt?otp=$otp");
|
// return array("https://different-ykkms.example.com/wsapi/decrypt?otp=$otp");
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user