public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/web/inc/lib/Yubico.php
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Yubico.php
on main
Author
Date
Commit
Line
Code
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 1
<?php
<?php
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 2
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 3
* Class for verifying Yubico One-Time-Passcodes
* Class for verifying Yubico One-Time-Passcodes
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 4
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 5
* @category Auth
* @category Auth
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 6
* @package Auth_Yubico
* @package Auth_Yubico
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 7
* @author Simon Josefsson <[email protected]>, Olov Danielson <[email protected]>
* @author Simon Josefsson <[email protected]>, Olov Danielson <[email protected]>
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 8
* @copyright 2007-2020 Yubico AB
* @copyright 2007-2020 Yubico AB
Timo N
over 7 years ago
c1c2dc3
[WEB] Update Yubico lib
- Full commit hash
c1c2dc302abe1bc7374c99efcd6bfd8ef0868a8a- Author
- Timo N <[email protected]>
- Date
- over 7 years ago
- Selected line
- 9
* @license https://opensource.org/licenses/bsd-license.php New BSD License
* @license https://opensource.org/licenses/bsd-license.php New BSD License
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 10
* @version 2.0
* @version 2.0
Timo N
over 7 years ago
c1c2dc3
[WEB] Update Yubico lib
- Full commit hash
c1c2dc302abe1bc7374c99efcd6bfd8ef0868a8a- Author
- Timo N <[email protected]>
- Date
- over 7 years ago
- Selected line
- 11
* @link https://www.yubico.com/
* @link https://www.yubico.com/
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 12
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 13
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 14
require_once 'PEAR.php';
require_once 'PEAR.php';
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 15
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 16
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 17
* Class for verifying Yubico One-Time-Passcodes
* Class for verifying Yubico One-Time-Passcodes
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 18
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 19
* Simple example:
* Simple example:
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 20
* <code>
* <code>
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 21
* require_once 'Auth/Yubico.php';
* require_once 'Auth/Yubico.php';
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 22
* $otp = "ccbbddeertkrctjkkcglfndnlihhnvekchkcctif";
* $otp = "ccbbddeertkrctjkkcglfndnlihhnvekchkcctif";
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 23
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 24
* # Generate a new id+key from https://api.yubico.com/get-api-key/
* # Generate a new id+key from https://api.yubico.com/get-api-key/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 25
* $yubi = new Auth_Yubico('42', 'FOOBAR=');
* $yubi = new Auth_Yubico('42', 'FOOBAR=');
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 26
* $auth = $yubi->verify($otp);
* $auth = $yubi->verify($otp);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 27
* if (PEAR::isError($auth)) {
* if (PEAR::isError($auth)) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 28
* print "<p>Authentication failed: " . $auth->getMessage();
* print "<p>Authentication failed: " . $auth->getMessage();
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 29
* print "<p>Debug output from server: " . $yubi->getLastResponse();
* print "<p>Debug output from server: " . $yubi->getLastResponse();
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 30
* } else {
* } else {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 31
* print "<p>You are authenticated!";
* print "<p>You are authenticated!";
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 32
* }
* }
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 33
* </code>
* </code>
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 34
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 35
class Auth_Yubico
class Auth_Yubico
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 36
{
{
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 37
/**#@+
/**#@+
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 38
* @access private
* @access private
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 39
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 40
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 41
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 42
* Yubico client ID
* Yubico client ID
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 43
* @var string
* @var string
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 44
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 45
var $_id;
var $_id;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 46
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 47
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 48
* Yubico client key
* Yubico client key
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 49
* @var string
* @var string
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 50
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 51
var $_key;
var $_key;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 52
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 53
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 54
* List with URL part of validation servers
* List with URL part of validation servers
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 55
* @var array
* @var array
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 56
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 57
var $_url_list;
var $_url_list;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 58
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 59
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 60
* index to _url_list
* index to _url_list
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 61
* @var int
* @var int
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 62
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 63
var $_url_index;
var $_url_index;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 64
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 65
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 66
* Last query to server
* Last query to server
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 67
* @var string
* @var string
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 68
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 69
var $_lastquery;
var $_lastquery;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 70
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 71
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 72
* Response from server
* Response from server
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 73
* @var string
* @var string
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 74
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 75
var $_response;
var $_response;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 76
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 77
/**
/**
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 78
* Number of times we retried in our last validation
* Number of times we retried in our last validation
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 79
* @var int
* @var int
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 80
*/
*/
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 81
var $_retries;
var $_retries;
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 82
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 83
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 84
* Flag whether to verify HTTPS server certificates or not.
* Flag whether to verify HTTPS server certificates or not.
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 85
* @var boolean
* @var boolean
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 86
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 87
var $_httpsverify;
var $_httpsverify;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 88
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 89
/**
/**
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 90
* Maximum number of times we will retry transient HTTP errors
* Maximum number of times we will retry transient HTTP errors
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 91
* @var int
* @var int
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 92
*/
*/
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 93
var $_max_retries;
var $_max_retries;
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 94
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 95
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 96
* Constructor
* Constructor
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 97
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 98
* Sets up the object
* Sets up the object
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 99
* @param string $id The client identity
* @param string $id The client identity
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 100
* @param string $key The client MAC key (optional)
* @param string $key The client MAC key (optional)
Timo N
over 7 years ago
c1c2dc3
[WEB] Update Yubico lib
- Full commit hash
c1c2dc302abe1bc7374c99efcd6bfd8ef0868a8a- Author
- Timo N <[email protected]>
- Date
- over 7 years ago
- Selected line
- 101
* @param boolean $https noop
* @param boolean $https noop
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 102
* @param boolean $httpsverify Flag whether to use verify HTTPS
* @param boolean $httpsverify Flag whether to use verify HTTPS
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 103
* server certificates (optional,
* server certificates (optional,
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 104
* default true)
* default true)
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 105
* @access public
* @access public
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 106
*/
*/
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 107
public function __construct($id, $key = '', $https = 0, $httpsverify = 1, $max_retries = 3)
public function __construct($id, $key = '', $https = 0, $httpsverify = 1, $max_retries = 3)
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 108
{
{
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 109
$this->_id = $id;
$this->_id = $id;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 110
$this->_key = base64_decode($key);
$this->_key = base64_decode($key);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 111
$this->_httpsverify = $httpsverify;
$this->_httpsverify = $httpsverify;
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 112
$this->_max_retries = $max_retries;
$this->_max_retries = $max_retries;
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 113
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 114
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 115
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 116
* Specify to use a different URL part for verification.
* Specify to use a different URL part for verification.
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 117
* The default is "https://api.yubico.com/wsapi/2.0/verify".
* The default is "https://api.yubico.com/wsapi/2.0/verify".
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 118
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 119
* @param string $url New server URL part to use
* @param string $url New server URL part to use
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 120
* @access public
* @access public
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 121
* @deprecated
* @deprecated
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 122
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 123
function setURLpart($url)
function setURLpart($url)
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 124
{
{
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 125
$this->_url_list = array($url);
$this->_url_list = array($url);
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 126
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 127
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 128
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 129
* Get next URL part from list to use for validation.
* Get next URL part from list to use for validation.
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 130
*
*
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 131
* @return mixed string with URL part or false if no more URLs in list
* @return mixed string with URL part or false if no more URLs in list
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 132
* @access public
* @access public
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 133
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 134
function getNextURLpart()
function getNextURLpart()
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 135
{
{
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 136
if ($this->_url_list) $url_list=$this->_url_list;
if ($this->_url_list) $url_list=$this->_url_list;
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 137
else $url_list=array('https://api.yubico.com/wsapi/2.0/verify');
else $url_list=array('https://api.yubico.com/wsapi/2.0/verify');
Timo N
over 7 years ago
c1c2dc3
[WEB] Update Yubico lib
- Full commit hash
c1c2dc302abe1bc7374c99efcd6bfd8ef0868a8a- Author
- Timo N <[email protected]>
- Date
- over 7 years ago
- Selected line
- 138
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 139
if ($this->_url_index>=count($url_list)) return false;
if ($this->_url_index>=count($url_list)) return false;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 140
else return $url_list[$this->_url_index++];
else return $url_list[$this->_url_index++];
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 141
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 142
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 143
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 144
* Resets index to URL list
* Resets index to URL list
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 145
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 146
* @access public
* @access public
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 147
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 148
function URLreset()
function URLreset()
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 149
{
{
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 150
$this->_url_index=0;
$this->_url_index=0;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 151
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 152
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 153
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 154
* Add another URLpart.
* Add another URLpart.
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 155
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 156
* @access public
* @access public
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 157
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 158
function addURLpart($URLpart)
function addURLpart($URLpart)
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 159
{
{
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 160
$this->_url_list[]=$URLpart;
$this->_url_list[]=$URLpart;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 161
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 162
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 163
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 164
* Return the last query sent to the server, if any.
* Return the last query sent to the server, if any.
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 165
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 166
* @return string Request to server
* @return string Request to server
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 167
* @access public
* @access public
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 168
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 169
function getLastQuery()
function getLastQuery()
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 170
{
{
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 171
return $this->_lastquery;
return $this->_lastquery;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 172
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 173
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 174
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 175
* Return the last data received from the server, if any.
* Return the last data received from the server, if any.
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 176
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 177
* @return string Output from server
* @return string Output from server
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 178
* @access public
* @access public
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 179
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 180
function getLastResponse()
function getLastResponse()
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 181
{
{
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 182
return $this->_response;
return $this->_response;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 183
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 184
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 185
/**
/**
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 186
* Return the number of retries that were used in the last validation
* Return the number of retries that were used in the last validation
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 187
*
*
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 188
* @return int Number of retries
* @return int Number of retries
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 189
* @access public
* @access public
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 190
*/
*/
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 191
function getRetries()
function getRetries()
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 192
{
{
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 193
return $this->_retries;
return $this->_retries;
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 194
}
}
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 195
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 196
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 197
* Parse input string into password, yubikey prefix,
* Parse input string into password, yubikey prefix,
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 198
* ciphertext, and OTP.
* ciphertext, and OTP.
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 199
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 200
* @param string Input string to parse
* @param string Input string to parse
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 201
* @param string Optional delimiter re-class, default is '[:]'
* @param string Optional delimiter re-class, default is '[:]'
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 202
* @return array Keyed array with fields
* @return array Keyed array with fields
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 203
* @access public
* @access public
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 204
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 205
function parsePasswordOTP($str, $delim = '[:]')
function parsePasswordOTP($str, $delim = '[:]')
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 206
{
{
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 207
if (!preg_match("/^((.*)" . $delim . ")?" .
if (!preg_match("/^((.*)" . $delim . ")?" .
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 208
"(([cbdefghijklnrtuv]{0,16})" .
"(([cbdefghijklnrtuv]{0,16})" .
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 209
"([cbdefghijklnrtuv]{32}))$/i",
"([cbdefghijklnrtuv]{32}))$/i",
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 210
$str, $matches)) {
$str, $matches)) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 211
/* Dvorak? */
/* Dvorak? */
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 212
if (!preg_match("/^((.*)" . $delim . ")?" .
if (!preg_match("/^((.*)" . $delim . ")?" .
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 213
"(([jxe\.uidchtnbpygk]{0,16})" .
"(([jxe\.uidchtnbpygk]{0,16})" .
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 214
"([jxe\.uidchtnbpygk]{32}))$/i",
"([jxe\.uidchtnbpygk]{32}))$/i",
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 215
$str, $matches)) {
$str, $matches)) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 216
return false;
return false;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 217
} else {
} else {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 218
$ret['otp'] = strtr($matches[3], "jxe.uidchtnbpygk", "cbdefghijklnrtuv");
$ret['otp'] = strtr($matches[3], "jxe.uidchtnbpygk", "cbdefghijklnrtuv");
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 219
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 220
} else {
} else {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 221
$ret['otp'] = $matches[3];
$ret['otp'] = $matches[3];
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 222
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 223
$ret['password'] = $matches[2];
$ret['password'] = $matches[2];
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 224
$ret['prefix'] = $matches[4];
$ret['prefix'] = $matches[4];
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 225
$ret['ciphertext'] = $matches[5];
$ret['ciphertext'] = $matches[5];
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 226
return $ret;
return $ret;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 227
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 228
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 229
/* TODO? Add functions to get parsed parts of server response? */
/* TODO? Add functions to get parsed parts of server response? */
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 230
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 231
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 232
* Parse parameters from last response
* Parse parameters from last response
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 233
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 234
* example: getParameters("timestamp", "sessioncounter", "sessionuse");
* example: getParameters("timestamp", "sessioncounter", "sessionuse");
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 235
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 236
* @param array @parameters Array with strings representing
* @param array @parameters Array with strings representing
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 237
* parameters to parse
* parameters to parse
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 238
* @return array parameter array from last response
* @return array parameter array from last response
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 239
* @access public
* @access public
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 240
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 241
function getParameters($parameters)
function getParameters($parameters)
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 242
{
{
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 243
if ($parameters == null) {
if ($parameters == null) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 244
$parameters = array('timestamp', 'sessioncounter', 'sessionuse');
$parameters = array('timestamp', 'sessioncounter', 'sessionuse');
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 245
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 246
$param_array = array();
$param_array = array();
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 247
foreach ($parameters as $param) {
foreach ($parameters as $param) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 248
if(!preg_match("/" . $param . "=([0-9]+)/", $this->_response, $out)) {
if(!preg_match("/" . $param . "=([0-9]+)/", $this->_response, $out)) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 249
return PEAR::raiseError('Could not parse parameter ' . $param . ' from response');
return PEAR::raiseError('Could not parse parameter ' . $param . ' from response');
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 250
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 251
$param_array[$param]=$out[1];
$param_array[$param]=$out[1];
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 252
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 253
return $param_array;
return $param_array;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 254
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 255
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 256
function _make_curl_handle($query, $timeout=null)
function _make_curl_handle($query, $timeout=null)
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 257
{
{
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 258
flush();
flush();
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 259
$handle = curl_init($query);
$handle = curl_init($query);
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 260
curl_setopt($handle, CURLOPT_USERAGENT, "PEAR Auth_Yubico");
curl_setopt($handle, CURLOPT_USERAGENT, "PEAR Auth_Yubico");
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 261
curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1);
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 262
if (!$this->_httpsverify) {
if (!$this->_httpsverify) {
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 263
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, 0);
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 264
curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, 0);
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 265
}
}
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 266
curl_setopt($handle, CURLOPT_FAILONERROR, true);
curl_setopt($handle, CURLOPT_FAILONERROR, true);
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 267
/* If timeout is set, we better apply it here as well
/* If timeout is set, we better apply it here as well
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 268
* in case the validation server fails to follow it. */
* in case the validation server fails to follow it. */
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 269
if ($timeout) {
if ($timeout) {
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 270
curl_setopt($handle, CURLOPT_TIMEOUT, $timeout);
curl_setopt($handle, CURLOPT_TIMEOUT, $timeout);
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 271
}
}
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 272
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 273
return $handle;
return $handle;
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 274
}
}
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 275
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 276
/**
/**
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 277
* Verify Yubico OTP against multiple URLs
* Verify Yubico OTP against multiple URLs
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 278
* Protocol specification 2.0 is used to construct validation requests
* Protocol specification 2.0 is used to construct validation requests
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 279
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 280
* @param string $token Yubico OTP
* @param string $token Yubico OTP
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 281
* @param int $use_timestamp 1=>send request with ×tamp=1 to
* @param int $use_timestamp 1=>send request with ×tamp=1 to
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 282
* get timestamp and session information
* get timestamp and session information
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 283
* in the response
* in the response
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 284
* @param boolean $wait_for_all If true, wait until all
* @param boolean $wait_for_all If true, wait until all
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 285
* servers responds (for debugging)
* servers responds (for debugging)
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 286
* @param string $sl Sync level in percentage between 0
* @param string $sl Sync level in percentage between 0
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 287
* and 100 or "fast" or "secure".
* and 100 or "fast" or "secure".
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 288
* @param int $timeout Max number of seconds to wait
* @param int $timeout Max number of seconds to wait
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 289
* for responses
* for responses
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 290
* @param int $max_retries Max number of times we will retry on
* @param int $max_retries Max number of times we will retry on
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 291
* transient errors.
* transient errors.
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 292
* @return mixed PEAR error on error, true otherwise
* @return mixed PEAR error on error, true otherwise
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 293
* @access public
* @access public
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 294
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 295
function verify($token, $use_timestamp=null, $wait_for_all=False,
function verify($token, $use_timestamp=null, $wait_for_all=False,
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 296
$sl=null, $timeout=null, $max_retries=null)
$sl=null, $timeout=null, $max_retries=null)
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 297
{
{
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 298
/* If maximum retries is not set, default from instance */
/* If maximum retries is not set, default from instance */
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 299
if (is_null($max_retries)) {
if (is_null($max_retries)) {
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 300
$max_retries = $this->_max_retries;
$max_retries = $this->_max_retries;
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 301
}
}
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 302
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 303
/* Construct parameters string */
/* Construct parameters string */
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 304
$ret = $this->parsePasswordOTP($token);
$ret = $this->parsePasswordOTP($token);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 305
if (!$ret) {
if (!$ret) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 306
return PEAR::raiseError('Could not parse Yubikey OTP');
return PEAR::raiseError('Could not parse Yubikey OTP');
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 307
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 308
$params = array('id'=>$this->_id,
$params = array('id'=>$this->_id,
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 309
'otp'=>$ret['otp'],
'otp'=>$ret['otp'],
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 310
'nonce'=>md5(uniqid(rand())));
'nonce'=>md5(uniqid(rand())));
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 311
/* Take care of protocol version 2 parameters */
/* Take care of protocol version 2 parameters */
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 312
if ($use_timestamp) $params['timestamp'] = 1;
if ($use_timestamp) $params['timestamp'] = 1;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 313
if ($sl) $params['sl'] = $sl;
if ($sl) $params['sl'] = $sl;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 314
if ($timeout) $params['timeout'] = $timeout;
if ($timeout) $params['timeout'] = $timeout;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 315
ksort($params);
ksort($params);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 316
$parameters = '';
$parameters = '';
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 317
foreach($params as $p=>$v) $parameters .= "&" . $p . "=" . $v;
foreach($params as $p=>$v) $parameters .= "&" . $p . "=" . $v;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 318
$parameters = ltrim($parameters, "&");
$parameters = ltrim($parameters, "&");
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 319
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 320
/* Generate signature. */
/* Generate signature. */
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 321
if($this->_key <> "") {
if($this->_key <> "") {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 322
$signature = base64_encode(hash_hmac('sha1', $parameters,
$signature = base64_encode(hash_hmac('sha1', $parameters,
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 323
$this->_key, true));
$this->_key, true));
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 324
$signature = preg_replace('/\+/', '%2B', $signature);
$signature = preg_replace('/\+/', '%2B', $signature);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 325
$parameters .= '&h=' . $signature;
$parameters .= '&h=' . $signature;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 326
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 327
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 328
/* Generate and prepare request. */
/* Generate and prepare request. */
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 329
$this->_lastquery = null;
$this->_lastquery = null;
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 330
$this->_retries = 0;
$this->_retries = 0;
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 331
$this->URLreset();
$this->URLreset();
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 332
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 333
$mh = curl_multi_init();
$mh = curl_multi_init();
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 334
$ch = array();
$ch = array();
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 335
$retries = array();
$retries = array();
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 336
while($URLpart=$this->getNextURLpart())
while($URLpart=$this->getNextURLpart())
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 337
{
{
Timo N
over 7 years ago
c1c2dc3
[WEB] Update Yubico lib
- Full commit hash
c1c2dc302abe1bc7374c99efcd6bfd8ef0868a8a- Author
- Timo N <[email protected]>
- Date
- over 7 years ago
- Selected line
- 338
$query = $URLpart . "?" . $parameters;
$query = $URLpart . "?" . $parameters;
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 339
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 340
if ($this->_lastquery) { $this->_lastquery .= " "; }
if ($this->_lastquery) { $this->_lastquery .= " "; }
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 341
$this->_lastquery .= $query;
$this->_lastquery .= $query;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 342
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 343
$handle = $this->_make_curl_handle($query, $timeout);
$handle = $this->_make_curl_handle($query, $timeout);
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 344
curl_multi_add_handle($mh, $handle);
curl_multi_add_handle($mh, $handle);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 345
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 346
$ch[(int)$handle] = $handle;
$ch[(int)$handle] = $handle;
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 347
$retries[$query] = 0;
$retries[$query] = 0;
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 348
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 349
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 350
/* Execute and read request. */
/* Execute and read request. */
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 351
$this->_response=null;
$this->_response=null;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 352
$replay=False;
$replay=False;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 353
$valid=False;
$valid=False;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 354
do {
do {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 355
/* Let curl do its work. */
/* Let curl do its work. */
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 356
while (($mrc = curl_multi_exec($mh, $active))
while (($mrc = curl_multi_exec($mh, $active))
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 357
== CURLM_CALL_MULTI_PERFORM) {
== CURLM_CALL_MULTI_PERFORM) {
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 358
curl_multi_select($mh);
curl_multi_select($mh);
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 359
}
}
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 360
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 361
while ($info = curl_multi_info_read($mh)) {
while ($info = curl_multi_info_read($mh)) {
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 362
$cinfo = curl_getinfo ($info['handle']);
$cinfo = curl_getinfo ($info['handle']);
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 363
if ($info['result'] == CURLE_OK) {
if ($info['result'] == CURLE_OK) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 364
/* We have a complete response from one server. */
/* We have a complete response from one server. */
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 365
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 366
$str = curl_multi_getcontent($info['handle']);
$str = curl_multi_getcontent($info['handle']);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 367
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 368
if ($wait_for_all) { # Better debug info
if ($wait_for_all) { # Better debug info
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 369
$this->_response .= 'URL=' . $cinfo['url'] . ' HTTP_CODE='
$this->_response .= 'URL=' . $cinfo['url'] . ' HTTP_CODE='
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 370
. $cinfo['http_code'] . "\n"
. $cinfo['http_code'] . "\n"
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 371
. $str . "\n";
. $str . "\n";
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 372
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 373
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 374
if (preg_match("/status=([a-zA-Z0-9_]+)/", $str, $out)) {
if (preg_match("/status=([a-zA-Z0-9_]+)/", $str, $out)) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 375
$status = $out[1];
$status = $out[1];
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 376
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 377
/*
/*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 378
* There are 3 cases.
* There are 3 cases.
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 379
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 380
* 1. OTP or Nonce values doesn't match - ignore
* 1. OTP or Nonce values doesn't match - ignore
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 381
* response.
* response.
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 382
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 383
* 2. We have a HMAC key. If signature is invalid -
* 2. We have a HMAC key. If signature is invalid -
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 384
* ignore response. Return if status=OK or
* ignore response. Return if status=OK or
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 385
* status=REPLAYED_OTP.
* status=REPLAYED_OTP.
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 386
*
*
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 387
* 3. Return if status=OK or status=REPLAYED_OTP.
* 3. Return if status=OK or status=REPLAYED_OTP.
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 388
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 389
if (!preg_match("/otp=".$params['otp']."/", $str) ||
if (!preg_match("/otp=".$params['otp']."/", $str) ||
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 390
!preg_match("/nonce=".$params['nonce']."/", $str)) {
!preg_match("/nonce=".$params['nonce']."/", $str)) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 391
/* Case 1. Ignore response. */
/* Case 1. Ignore response. */
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 392
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 393
elseif ($this->_key <> "") {
elseif ($this->_key <> "") {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 394
/* Case 2. Verify signature first */
/* Case 2. Verify signature first */
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 395
$rows = explode("\r\n", trim($str));
$rows = explode("\r\n", trim($str));
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 396
$response=array();
$response=array();
Timo N
over 7 years ago
c1c2dc3
[WEB] Update Yubico lib
- Full commit hash
c1c2dc302abe1bc7374c99efcd6bfd8ef0868a8a- Author
- Timo N <[email protected]>
- Date
- over 7 years ago
- Selected line
- 397
foreach ($rows as $key => $val) {
foreach ($rows as $key => $val) {
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 398
/* = is also used in BASE64 encoding so we only replace the first = by # which is not used in BASE64 */
/* = is also used in BASE64 encoding so we only replace the first = by # which is not used in BASE64 */
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 399
$val = preg_replace('/=/', '#', $val, 1);
$val = preg_replace('/=/', '#', $val, 1);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 400
$row = explode("#", $val);
$row = explode("#", $val);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 401
$response[$row[0]] = $row[1];
$response[$row[0]] = $row[1];
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 402
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 403
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 404
$parameters=array('nonce','otp', 'sessioncounter', 'sessionuse', 'sl', 'status', 't', 'timeout', 'timestamp');
$parameters=array('nonce','otp', 'sessioncounter', 'sessionuse', 'sl', 'status', 't', 'timeout', 'timestamp');
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 405
sort($parameters);
sort($parameters);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 406
$check=Null;
$check=Null;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 407
foreach ($parameters as $param) {
foreach ($parameters as $param) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 408
if (array_key_exists($param, $response)) {
if (array_key_exists($param, $response)) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 409
if ($check) $check = $check . '&';
if ($check) $check = $check . '&';
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 410
$check = $check . $param . '=' . $response[$param];
$check = $check . $param . '=' . $response[$param];
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 411
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 412
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 413
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 414
$checksignature =
$checksignature =
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 415
base64_encode(hash_hmac('sha1', utf8_encode($check),
base64_encode(hash_hmac('sha1', utf8_encode($check),
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 416
$this->_key, true));
$this->_key, true));
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 417
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 418
if($response['h'] == $checksignature) {
if($response['h'] == $checksignature) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 419
if ($status == 'REPLAYED_OTP') {
if ($status == 'REPLAYED_OTP') {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 420
if (!$wait_for_all) { $this->_response = $str; }
if (!$wait_for_all) { $this->_response = $str; }
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 421
$replay=True;
$replay=True;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 422
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 423
if ($status == 'OK') {
if ($status == 'OK') {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 424
if (!$wait_for_all) { $this->_response = $str; }
if (!$wait_for_all) { $this->_response = $str; }
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 425
$valid=True;
$valid=True;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 426
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 427
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 428
} else {
} else {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 429
/* Case 3. We check the status directly */
/* Case 3. We check the status directly */
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 430
if ($status == 'REPLAYED_OTP') {
if ($status == 'REPLAYED_OTP') {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 431
if (!$wait_for_all) { $this->_response = $str; }
if (!$wait_for_all) { $this->_response = $str; }
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 432
$replay=True;
$replay=True;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 433
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 434
if ($status == 'OK') {
if ($status == 'OK') {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 435
if (!$wait_for_all) { $this->_response = $str; }
if (!$wait_for_all) { $this->_response = $str; }
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 436
$valid=True;
$valid=True;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 437
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 438
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 439
}
}
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 440
if (!$wait_for_all && ($valid || $replay))
if (!$wait_for_all && ($valid || $replay))
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 441
{
{
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 442
/* We have status=OK or status=REPLAYED_OTP, return. */
/* We have status=OK or status=REPLAYED_OTP, return. */
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 443
foreach ($ch as $h) {
foreach ($ch as $h) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 444
curl_multi_remove_handle($mh, $h);
curl_multi_remove_handle($mh, $h);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 445
curl_close($h);
curl_close($h);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 446
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 447
curl_multi_close($mh);
curl_multi_close($mh);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 448
if ($replay) return PEAR::raiseError('REPLAYED_OTP');
if ($replay) return PEAR::raiseError('REPLAYED_OTP');
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 449
if ($valid) return true;
if ($valid) return true;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 450
return PEAR::raiseError($status);
return PEAR::raiseError($status);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 451
}
}
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 452
} else {
} else {
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 453
/* Some kind of error, but def. not a 200 response */
/* Some kind of error, but def. not a 200 response */
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 454
/* No status= in response body */
/* No status= in response body */
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 455
$http_status_code = (int)$cinfo['http_code'];
$http_status_code = (int)$cinfo['http_code'];
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 456
$query = $cinfo['url'];
$query = $cinfo['url'];
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 457
if ($http_status_code == 400 ||
if ($http_status_code == 400 ||
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 458
($http_status_code >= 500 && $http_status_code < 600)) {
($http_status_code >= 500 && $http_status_code < 600)) {
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 459
/* maybe retry */
/* maybe retry */
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 460
if ($retries[$query] < $max_retries) {
if ($retries[$query] < $max_retries) {
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 461
$retries[$query]++; // for this server
$retries[$query]++; // for this server
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 462
$this->_retries++; // for this validation attempt
$this->_retries++; // for this validation attempt
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 463
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 464
$newhandle = $this->_make_curl_handle($query, $timeout);
$newhandle = $this->_make_curl_handle($query, $timeout);
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 465
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 466
curl_multi_add_handle($mh, $newhandle);
curl_multi_add_handle($mh, $newhandle);
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 467
$ch[(int)$newhandle] = $newhandle;
$ch[(int)$newhandle] = $newhandle;
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 468
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 469
// Loop back up to curl_multi_exec, even if this
// Loop back up to curl_multi_exec, even if this
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 470
// was the last handle and curl_multi_exec _was_
// was the last handle and curl_multi_exec _was_
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 471
// no longer active, it's active again now we've
// no longer active, it's active again now we've
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 472
// added a retry.
// added a retry.
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 473
$active = true;
$active = true;
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 474
}
}
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 475
}
}
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 476
}
}
Timo N
about 6 years ago
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 477
/* Done with this handle */
/* Done with this handle */
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 478
curl_multi_remove_handle($mh, $info['handle']);
curl_multi_remove_handle($mh, $info['handle']);
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 479
curl_close($info['handle']);
curl_close($info['handle']);
same change
e91fb7c
[Web] Updated Yubico.php to v2.7 (#3535)
- Full commit hash
e91fb7ccddd26d5c15ab9bb940456bd25c8ffa13- Author
- Timo N <[email protected]>
- Date
- about 6 years ago
- Selected line
- 480
unset ($ch[(int)$info['handle']]);
unset ($ch[(int)$info['handle']]);
andryyy
over 9 years ago
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 481
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 482
} while ($active);
} while ($active);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 483
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 484
/* Typically this is only reached for wait_for_all=true or
/* Typically this is only reached for wait_for_all=true or
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 485
* when the timeout is reached and there is no
* when the timeout is reached and there is no
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 486
* OK/REPLAYED_REQUEST answer (think firewall).
* OK/REPLAYED_REQUEST answer (think firewall).
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 487
*/
*/
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 488
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 489
foreach ($ch as $h) {
foreach ($ch as $h) {
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 490
curl_multi_remove_handle ($mh, $h);
curl_multi_remove_handle ($mh, $h);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 491
curl_close ($h);
curl_close ($h);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 492
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 493
curl_multi_close ($mh);
curl_multi_close ($mh);
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 494
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 495
if ($replay) return PEAR::raiseError('REPLAYED_OTP');
if ($replay) return PEAR::raiseError('REPLAYED_OTP');
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 496
if ($valid) return true;
if ($valid) return true;
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 497
return PEAR::raiseError('NO_VALID_ANSWER');
return PEAR::raiseError('NO_VALID_ANSWER');
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 498
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 499
}
}
same change
d891bc8
Docs
- Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b- Author
- andryyy <[email protected]>
- Date
- over 9 years ago
- Selected line
- 500
?>
?>