NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
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
Open commit View diff
1 <?php
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
2
  /**
Open commit View diff
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
Open commit View diff
3 * 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
   *
Open commit View diff
4 *
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
5
   * @category    Auth
Open commit View diff
5 * @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
Open commit View diff
6 * @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]>
Open commit View diff
7 * @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
Open commit View diff
8 * @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
Open commit View diff
9 * @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
Open commit View diff
10 * @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/
Open commit View diff
11 * @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
   */
Open commit View diff
12 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
13
Open commit View diff
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';
Open commit View diff
14 require_once 'PEAR.php';
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
15
Open commit View diff
15
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
16
/**
Open commit View diff
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
Open commit View diff
17 * 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
 *
Open commit View diff
18 *
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
19
 * Simple example:
Open commit View diff
19 * Simple example:
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
20
 * <code>
Open commit View diff
20 * <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';
Open commit View diff
21 * 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";
Open commit View diff
22 * $otp = "ccbbddeertkrctjkkcglfndnlihhnvekchkcctif";
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
23
 *
Open commit View diff
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/
Open commit View diff
24 * # 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=');
Open commit View diff
25 * $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);
Open commit View diff
26 * $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)) {
Open commit View diff
27 * 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();
Open commit View diff
28 * 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();
Open commit View diff
29 * 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 {
Open commit View diff
30 * } 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!";
Open commit View diff
31 * 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
 * }
Open commit View diff
32 * }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
33
 * </code>
Open commit View diff
33 * </code>
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
34
 */
Open commit View diff
34 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
35
class Auth_Yubico
Open commit View diff
35 class Auth_Yubico
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
36
{
Open commit View diff
36 {
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
37
	/**#@+
Open commit View diff
37 /**#@+
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
38
	 * @access private
Open commit View diff
38 * @access private
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
39
	 */
Open commit View diff
39 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
40
Open commit View diff
40
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
41
	/**
Open commit View diff
41 /**
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
42
	 * Yubico client ID
Open commit View diff
42 * 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
Open commit View diff
43 * @var string
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
44
	 */
Open commit View diff
44 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
45
	var $_id;
Open commit View diff
45 var $_id;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
46
Open commit View diff
46
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
47
	/**
Open commit View diff
47 /**
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
48
	 * Yubico client key
Open commit View diff
48 * 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
Open commit View diff
49 * @var string
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
50
	 */
Open commit View diff
50 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
51
	var $_key;
Open commit View diff
51 var $_key;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
52
Open commit View diff
52
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
53
	/**
Open commit View diff
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
Open commit View diff
54 * 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
Open commit View diff
55 * @var array
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
56
	 */
Open commit View diff
56 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
57
	var $_url_list;
Open commit View diff
57 var $_url_list;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
58
Open commit View diff
58
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
59
	/**
Open commit View diff
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
Open commit View diff
60 * 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
Open commit View diff
61 * @var int
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
62
	 */
Open commit View diff
62 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
63
	var $_url_index;
Open commit View diff
63 var $_url_index;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
64
Open commit View diff
64
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
65
	/**
Open commit View diff
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
Open commit View diff
66 * 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
Open commit View diff
67 * @var string
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
68
	 */
Open commit View diff
68 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
69
	var $_lastquery;
Open commit View diff
69 var $_lastquery;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
70
Open commit View diff
70
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
71
	/**
Open commit View diff
71 /**
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
72
	 * Response from server
Open commit View diff
72 * 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
Open commit View diff
73 * @var string
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
74
	 */
Open commit View diff
74 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
75
	var $_response;
Open commit View diff
75 var $_response;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
76
Open commit View diff
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
	/**
Open commit View diff
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
Open commit View diff
78 * 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
Open commit View diff
79 * @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
	 */
Open commit View diff
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;
Open commit View diff
81 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
Open commit View diff
82
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
83
	/**
Open commit View diff
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.
Open commit View diff
84 * 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
Open commit View diff
85 * @var boolean
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
86
	 */
Open commit View diff
86 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
87
	var $_httpsverify;
Open commit View diff
87 var $_httpsverify;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
88
Open commit View diff
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
	/**
Open commit View diff
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
Open commit View diff
90 * 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
Open commit View diff
91 * @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
	 */
Open commit View diff
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;
Open commit View diff
93 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
Open commit View diff
94
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
95
	/**
Open commit View diff
95 /**
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
96
	 * Constructor
Open commit View diff
96 * Constructor
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
97
	 *
Open commit View diff
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
Open commit View diff
98 * 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
Open commit View diff
99 * @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)
Open commit View diff
100 * @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
Open commit View diff
101 * @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
Open commit View diff
102 * @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,
Open commit View diff
103 * 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)
Open commit View diff
104 * default true)
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
105
	 * @access public
Open commit View diff
105 * @access public
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
106
	 */
Open commit View diff
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)
Open commit View diff
107 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
	{
Open commit View diff
108 {
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
109
		$this->_id =  $id;
Open commit View diff
109 $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);
Open commit View diff
110 $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;
Open commit View diff
111 $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;
Open commit View diff
112 $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
	}
Open commit View diff
113 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
114
Open commit View diff
114
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
115
	/**
Open commit View diff
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.
Open commit View diff
116 * 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".
Open commit View diff
117 * 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
	 *
Open commit View diff
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
Open commit View diff
119 * @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
Open commit View diff
120 * @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
Open commit View diff
121 * @deprecated
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
122
	 */
Open commit View diff
122 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
123
	function setURLpart($url)
Open commit View diff
123 function setURLpart($url)
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
124
	{
Open commit View diff
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);
Open commit View diff
125 $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
	}
Open commit View diff
126 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
127
Open commit View diff
127
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
128
	/**
Open commit View diff
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.
Open commit View diff
129 * 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
	 *
Open commit View diff
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
Open commit View diff
131 * @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
Open commit View diff
132 * @access public
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
133
	 */
Open commit View diff
133 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
134
	function getNextURLpart()
Open commit View diff
134 function getNextURLpart()
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
135
	{
Open commit View diff
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;
Open commit View diff
136 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');
Open commit View diff
137 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
Open commit View diff
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;
Open commit View diff
139 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++];
Open commit View diff
140 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
	}
Open commit View diff
141 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
142
Open commit View diff
142
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
143
	/**
Open commit View diff
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
Open commit View diff
144 * 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
	 *
Open commit View diff
145 *
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
146
	 * @access public
Open commit View diff
146 * @access public
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
147
	 */
Open commit View diff
147 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
148
	function URLreset()
Open commit View diff
148 function URLreset()
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
149
	{
Open commit View diff
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;
Open commit View diff
150 $this->_url_index=0;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
151
	}
Open commit View diff
151 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
152
Open commit View diff
152
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
153
	/**
Open commit View diff
153 /**
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
154
	 * Add another URLpart.
Open commit View diff
154 * Add another URLpart.
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
155
	 *
Open commit View diff
155 *
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
156
	 * @access public
Open commit View diff
156 * @access public
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
157
	 */
Open commit View diff
157 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
158
	function addURLpart($URLpart) 
Open commit View diff
158 function addURLpart($URLpart)
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
159
	{
Open commit View diff
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;
Open commit View diff
160 $this->_url_list[]=$URLpart;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
161
	}
Open commit View diff
161 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
162
	
Open commit View diff
162
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
163
	/**
Open commit View diff
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.
Open commit View diff
164 * 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
	 *
Open commit View diff
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
Open commit View diff
166 * @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
Open commit View diff
167 * @access public
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
168
	 */
Open commit View diff
168 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
169
	function getLastQuery()
Open commit View diff
169 function getLastQuery()
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
170
	{
Open commit View diff
170 {
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
171
		return $this->_lastquery;
Open commit View diff
171 return $this->_lastquery;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
172
	}
Open commit View diff
172 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
173
Open commit View diff
173
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
174
	/**
Open commit View diff
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.
Open commit View diff
175 * 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
	 *
Open commit View diff
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
Open commit View diff
177 * @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
Open commit View diff
178 * @access public
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
179
	 */
Open commit View diff
179 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
180
	function getLastResponse()
Open commit View diff
180 function getLastResponse()
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
181
	{
Open commit View diff
181 {
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
182
		return $this->_response;
Open commit View diff
182 return $this->_response;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
183
	}
Open commit View diff
183 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
184
Open commit View diff
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
	/**
Open commit View diff
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
Open commit View diff
186 * 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
	 *
Open commit View diff
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
Open commit View diff
188 * @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
Open commit View diff
189 * @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
	 */
Open commit View diff
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()
Open commit View diff
191 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
	{
Open commit View diff
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;
Open commit View diff
193 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
	}
Open commit View diff
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
Open commit View diff
195
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
196
	/**
Open commit View diff
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,
Open commit View diff
197 * 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.
Open commit View diff
198 * ciphertext, and OTP.
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
199
	 *
Open commit View diff
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
Open commit View diff
200 * @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 '[:]'
Open commit View diff
201 * @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
Open commit View diff
202 * @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
Open commit View diff
203 * @access public
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
204
	 */
Open commit View diff
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 = '[:]')
Open commit View diff
205 function parsePasswordOTP($str, $delim = '[:]')
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
206
	{
Open commit View diff
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 . ")?" .
Open commit View diff
207 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})" .
Open commit View diff
208 "(([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",
Open commit View diff
209 "([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)) {
Open commit View diff
210 $str, $matches)) {
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
211
	    /* Dvorak? */
Open commit View diff
211 /* 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 . ")?" .
Open commit View diff
212 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})" .
Open commit View diff
213 "(([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",
Open commit View diff
214 "([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)) {
Open commit View diff
215 $str, $matches)) {
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
216
	      return false;
Open commit View diff
216 return false;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
217
	    } else {
Open commit View diff
217 } 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");
Open commit View diff
218 $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
	    }
Open commit View diff
219 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
220
	  } else {
Open commit View diff
220 } 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];
Open commit View diff
221 $ret['otp'] = $matches[3];
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
222
	  }
Open commit View diff
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];
Open commit View diff
223 $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];
Open commit View diff
224 $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];
Open commit View diff
225 $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;
Open commit View diff
226 return $ret;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
227
	}
Open commit View diff
227 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
228
Open commit View diff
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? */
Open commit View diff
229 /* 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
Open commit View diff
230
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
231
	/**
Open commit View diff
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
Open commit View diff
232 * 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
	 *
Open commit View diff
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");
Open commit View diff
234 * 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
	 *
Open commit View diff
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
Open commit View diff
236 * @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
Open commit View diff
237 * 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
Open commit View diff
238 * @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
Open commit View diff
239 * @access public
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
240
	 */
Open commit View diff
240 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
241
	function getParameters($parameters)
Open commit View diff
241 function getParameters($parameters)
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
242
	{
Open commit View diff
242 {
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
243
	  if ($parameters == null) {
Open commit View diff
243 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');
Open commit View diff
244 $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
	  }
Open commit View diff
245 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
246
	  $param_array = array();
Open commit View diff
246 $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) {
Open commit View diff
247 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)) {
Open commit View diff
248 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');
Open commit View diff
249 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
	    }
Open commit View diff
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];
Open commit View diff
251 $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
	  }
Open commit View diff
252 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
253
	  return $param_array;
Open commit View diff
253 return $param_array;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
254
	}
Open commit View diff
254 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
255
Open commit View diff
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)
Open commit View diff
256 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
	{
Open commit View diff
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();
Open commit View diff
258 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);
Open commit View diff
259 $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");
Open commit View diff
260 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);
Open commit View diff
261 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) {
Open commit View diff
262 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);
Open commit View diff
263 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);
Open commit View diff
264 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
	    }
Open commit View diff
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);
Open commit View diff
266 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
Open commit View diff
267 /* 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. */
Open commit View diff
268 * 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) {
Open commit View diff
269 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);
Open commit View diff
270 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
	    }
Open commit View diff
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
Open commit View diff
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;
Open commit View diff
273 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
	}
Open commit View diff
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
Open commit View diff
275
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
276
	/**
Open commit View diff
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
Open commit View diff
277 * 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
Open commit View diff
278 * 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
	 *
Open commit View diff
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
Open commit View diff
280 * @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 &timestamp=1 to
Open commit View diff
281 * @param int $use_timestamp 1=>send request with &timestamp=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
Open commit View diff
282 * 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
Open commit View diff
283 * 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
Open commit View diff
284 * @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)
Open commit View diff
285 * 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
Open commit View diff
286 * @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".
Open commit View diff
287 * 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
Open commit View diff
288 * @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
Open commit View diff
289 * 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
Open commit View diff
290 * @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.
Open commit View diff
291 * 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
Open commit View diff
292 * @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
Open commit View diff
293 * @access public
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
294
	 */
Open commit View diff
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,
Open commit View diff
295 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)
Open commit View diff
296 $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
	{
Open commit View diff
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 */
Open commit View diff
298 /* 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)) {
Open commit View diff
299 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;
Open commit View diff
300 $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
	  }
Open commit View diff
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
Open commit View diff
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 */
Open commit View diff
303 /* 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);
Open commit View diff
304 $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) {
Open commit View diff
305 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');
Open commit View diff
306 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
	  }
Open commit View diff
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, 
Open commit View diff
308 $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'],
Open commit View diff
309 '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())));
Open commit View diff
310 '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 */
Open commit View diff
311 /* 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;
Open commit View diff
312 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;
Open commit View diff
313 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;
Open commit View diff
314 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);
Open commit View diff
315 ksort($params);
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
316
	  $parameters = '';
Open commit View diff
316 $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;
Open commit View diff
317 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, "&");
Open commit View diff
318 $parameters = ltrim($parameters, "&");
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
319
	  
Open commit View diff
319
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
320
	  /* Generate signature. */
Open commit View diff
320 /* 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 <> "") {
Open commit View diff
321 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,
Open commit View diff
322 $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));
Open commit View diff
323 $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);
Open commit View diff
324 $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;
Open commit View diff
325 $parameters .= '&h=' . $signature;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
326
	  }
Open commit View diff
326 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
327
Open commit View diff
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. */
Open commit View diff
328 /* 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;
Open commit View diff
329 $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;
Open commit View diff
330 $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();
Open commit View diff
331 $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
Open commit View diff
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();
Open commit View diff
333 $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();
Open commit View diff
334 $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();
Open commit View diff
335 $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()) 
Open commit View diff
336 while($URLpart=$this->getNextURLpart())
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
337
	    {
Open commit View diff
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;
Open commit View diff
338 $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
Open commit View diff
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 .= " "; }
Open commit View diff
340 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;
Open commit View diff
341 $this->_lastquery .= $query;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
342
	      
Open commit View diff
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);
Open commit View diff
343 $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);
Open commit View diff
344 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
	      
Open commit View diff
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;
Open commit View diff
346 $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;
Open commit View diff
347 $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
	    }
Open commit View diff
348 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
349
Open commit View diff
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. */
Open commit View diff
350 /* 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;
Open commit View diff
351 $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;
Open commit View diff
352 $replay=False;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
353
	  $valid=False;
Open commit View diff
353 $valid=False;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
354
	  do {
Open commit View diff
354 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. */
Open commit View diff
355 /* 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))
Open commit View diff
356 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) {
Open commit View diff
357 == 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);
Open commit View diff
358 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
	    }
Open commit View diff
359 }
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
360
Open commit View diff
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)) {
Open commit View diff
361 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']);
Open commit View diff
362 $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) {
Open commit View diff
363 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. */
Open commit View diff
364 /* 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
Open commit View diff
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']);
Open commit View diff
366 $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
		
Open commit View diff
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
Open commit View diff
368 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='
Open commit View diff
369 $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"
Open commit View diff
370 . $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";
Open commit View diff
371 . $str . "\n";
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
372
		}
Open commit View diff
372 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
373
Open commit View diff
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)) {
Open commit View diff
374 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];
Open commit View diff
375 $status = $out[1];
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
376
Open commit View diff
376
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
377
		  /* 
Open commit View diff
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.
Open commit View diff
378 * There are 3 cases.
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
379
		   *
Open commit View diff
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
Open commit View diff
380 * 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.
Open commit View diff
381 * response.
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
382
		   *
Open commit View diff
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 -
Open commit View diff
383 * 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
Open commit View diff
384 * 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.
Open commit View diff
385 * status=REPLAYED_OTP.
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
386
		   *
Open commit View diff
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.
Open commit View diff
387 * 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
		   */
Open commit View diff
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) ||
Open commit View diff
389 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)) {
Open commit View diff
390 !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. */
Open commit View diff
391 /* Case 1. Ignore response. */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
392
		  } 
Open commit View diff
392 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
393
		  elseif ($this->_key <> "") {
Open commit View diff
393 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 */
Open commit View diff
394 /* 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));
Open commit View diff
395 $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();
Open commit View diff
396 $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) {
Open commit View diff
397 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 */
Open commit View diff
398 /* = 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);
Open commit View diff
399 $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);
Open commit View diff
400 $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];
Open commit View diff
401 $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
		    }
Open commit View diff
402 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
403
		    
Open commit View diff
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');
Open commit View diff
404 $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);
Open commit View diff
405 sort($parameters);
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
406
		    $check=Null;
Open commit View diff
406 $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) {
Open commit View diff
407 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)) {
Open commit View diff
408 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 . '&';
Open commit View diff
409 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];
Open commit View diff
410 $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
		      }
Open commit View diff
411 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
412
		    }
Open commit View diff
412 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
413
Open commit View diff
413
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
414
		    $checksignature =
Open commit View diff
414 $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),
Open commit View diff
415 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));
Open commit View diff
416 $this->_key, true));
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
417
Open commit View diff
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) {
Open commit View diff
418 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') {
Open commit View diff
419 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; }
Open commit View diff
420 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;
Open commit View diff
421 $replay=True;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
422
		      } 
Open commit View diff
422 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
423
		      if ($status == 'OK') {
Open commit View diff
423 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; }
Open commit View diff
424 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;
Open commit View diff
425 $valid=True;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
426
		      }
Open commit View diff
426 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
427
		    }
Open commit View diff
427 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
428
		  } else {
Open commit View diff
428 } 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 */
Open commit View diff
429 /* 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') {
Open commit View diff
430 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; }
Open commit View diff
431 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;
Open commit View diff
432 $replay=True;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
433
		    } 
Open commit View diff
433 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
434
		    if ($status == 'OK') {
Open commit View diff
434 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; }
Open commit View diff
435 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;
Open commit View diff
436 $valid=True;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
437
		    }
Open commit View diff
437 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
438
		  }
Open commit View diff
438 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
439
		}
Open commit View diff
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))
Open commit View diff
440 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
		  {
Open commit View diff
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. */
Open commit View diff
442 /* 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) {
Open commit View diff
443 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);
Open commit View diff
444 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);
Open commit View diff
445 curl_close($h);
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
446
		    }
Open commit View diff
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);
Open commit View diff
447 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');
Open commit View diff
448 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;
Open commit View diff
449 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);
Open commit View diff
450 return PEAR::raiseError($status);
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
451
		  }
Open commit View diff
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 {
Open commit View diff
452 } 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 */
Open commit View diff
453 /* 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 */
Open commit View diff
454 /* 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'];
Open commit View diff
455 $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'];
Open commit View diff
456 $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 ||
Open commit View diff
457 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)) {
Open commit View diff
458 ($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 */
Open commit View diff
459 /* 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) {
Open commit View diff
460 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
Open commit View diff
461 $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
Open commit View diff
462 $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
Open commit View diff
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);
Open commit View diff
464 $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
Open commit View diff
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);
Open commit View diff
466 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;
Open commit View diff
467 $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
Open commit View diff
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
Open commit View diff
469 // 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_
Open commit View diff
470 // 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
Open commit View diff
471 // 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.
Open commit View diff
472 // 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;
Open commit View diff
473 $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
		  }
Open commit View diff
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
		}
Open commit View diff
475 }
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
476
	      }
Open commit View diff
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 */
Open commit View diff
477 /* 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']);
Open commit View diff
478 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']);
Open commit View diff
479 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']]);
Open commit View diff
480 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
	    }
Open commit View diff
481 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
482
	  } while ($active);
Open commit View diff
482 } while ($active);
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
483
Open commit View diff
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
Open commit View diff
484 /* 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
Open commit View diff
485 * 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).
Open commit View diff
486 * 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
	   */
Open commit View diff
487 */
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
488
Open commit View diff
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) {
Open commit View diff
489 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);
Open commit View diff
490 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);
Open commit View diff
491 curl_close ($h);
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
492
	  }
Open commit View diff
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);
Open commit View diff
493 curl_multi_close ($mh);
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
494
	  
Open commit View diff
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');
Open commit View diff
495 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;
Open commit View diff
496 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');
Open commit View diff
497 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
	}
Open commit View diff
498 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
499
}
Open commit View diff
499 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
500
?>
Open commit View diff
500 ?>