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/WebAuthn/Attestation/Format/U2f.php

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

U2f.php on main
Author Date Commit Line Code
andryyy over 5 years ago 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
2
Open commit View diff
2
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
3
Open commit View diff
3
FreddlePat over 4 years ago d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
4
namespace lbuchs\WebAuthn\Attestation\Format;
Open commit View diff
4 namespace lbuchs\WebAuthn\Attestation\Format;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
5
use lbuchs\WebAuthn\Attestation\AuthenticatorData;
Open commit View diff
5 use lbuchs\WebAuthn\Attestation\AuthenticatorData;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
6
use lbuchs\WebAuthn\WebAuthnException;
Open commit View diff
6 use lbuchs\WebAuthn\WebAuthnException;
same change d1d1340

migrating from u2f-api.js to webauthn

Full commit hash
d1d134038ffa2bde66ccfafd842dcafe5eb3ea11
Author
FreddlePat <[email protected]>
Date
over 4 years ago
Selected line
7
use lbuchs\WebAuthn\Binary\ByteBuffer;
Open commit View diff
7 use lbuchs\WebAuthn\Binary\ByteBuffer;
andryyy over 5 years ago 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
8
Open commit View diff
8
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
9
class U2f extends FormatBase {
Open commit View diff
9 class U2f extends FormatBase {
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
10
    private $_alg = -7;
Open commit View diff
10 private $_alg = -7;
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
11
    private $_signature;
Open commit View diff
11 private $_signature;
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
12
    private $_x5c;
Open commit View diff
12 private $_x5c;
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
13
Open commit View diff
13
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
14
    public function __construct($AttestionObject, AuthenticatorData $authenticatorData) {
Open commit View diff
14 public function __construct($AttestionObject, AuthenticatorData $authenticatorData) {
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
15
        parent::__construct($AttestionObject, $authenticatorData);
Open commit View diff
15 parent::__construct($AttestionObject, $authenticatorData);
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
16
Open commit View diff
16
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
17
        // check u2f data
Open commit View diff
17 // check u2f data
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
18
        $attStmt = $this->_attestationObject['attStmt'];
Open commit View diff
18 $attStmt = $this->_attestationObject['attStmt'];
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
19
Open commit View diff
19
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
20
        if (\array_key_exists('alg', $attStmt) && $attStmt['alg'] !== $this->_alg) {
Open commit View diff
20 if (\array_key_exists('alg', $attStmt) && $attStmt['alg'] !== $this->_alg) {
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
21
            throw new WebAuthnException('u2f only accepts algorithm -7 ("ES256"), but got ' . $attStmt['alg'], WebAuthnException::INVALID_DATA);
Open commit View diff
21 throw new WebAuthnException('u2f only accepts algorithm -7 ("ES256"), but got ' . $attStmt['alg'], WebAuthnException::INVALID_DATA);
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
22
        }
Open commit View diff
22 }
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
23
Open commit View diff
23
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
24
        if (!\array_key_exists('sig', $attStmt) || !\is_object($attStmt['sig']) || !($attStmt['sig'] instanceof ByteBuffer)) {
Open commit View diff
24 if (!\array_key_exists('sig', $attStmt) || !\is_object($attStmt['sig']) || !($attStmt['sig'] instanceof ByteBuffer)) {
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
25
            throw new WebAuthnException('no signature found', WebAuthnException::INVALID_DATA);
Open commit View diff
25 throw new WebAuthnException('no signature found', WebAuthnException::INVALID_DATA);
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
26
        }
Open commit View diff
26 }
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
27
Open commit View diff
27
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
28
        if (!\array_key_exists('x5c', $attStmt) || !\is_array($attStmt['x5c']) || \count($attStmt['x5c']) !== 1) {
Open commit View diff
28 if (!\array_key_exists('x5c', $attStmt) || !\is_array($attStmt['x5c']) || \count($attStmt['x5c']) !== 1) {
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
29
            throw new WebAuthnException('invalid x5c certificate', WebAuthnException::INVALID_DATA);
Open commit View diff
29 throw new WebAuthnException('invalid x5c certificate', WebAuthnException::INVALID_DATA);
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
30
        }
Open commit View diff
30 }
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
31
Open commit View diff
31
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
32
        if (!\is_object($attStmt['x5c'][0]) || !($attStmt['x5c'][0] instanceof ByteBuffer)) {
Open commit View diff
32 if (!\is_object($attStmt['x5c'][0]) || !($attStmt['x5c'][0] instanceof ByteBuffer)) {
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
33
            throw new WebAuthnException('invalid x5c certificate', WebAuthnException::INVALID_DATA);
Open commit View diff
33 throw new WebAuthnException('invalid x5c certificate', WebAuthnException::INVALID_DATA);
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
34
        }
Open commit View diff
34 }
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
35
Open commit View diff
35
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
36
        $this->_signature = $attStmt['sig']->getBinaryString();
Open commit View diff
36 $this->_signature = $attStmt['sig']->getBinaryString();
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
37
        $this->_x5c = $attStmt['x5c'][0]->getBinaryString();
Open commit View diff
37 $this->_x5c = $attStmt['x5c'][0]->getBinaryString();
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
38
    }
Open commit View diff
38 }
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
39
Open commit View diff
39
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
40
Open commit View diff
40
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
41
    /*
Open commit View diff
41 /*
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
42
     * returns the key certificate in PEM format
Open commit View diff
42 * returns the key certificate in PEM format
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
43
     * @return string
Open commit View diff
43 * @return string
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
44
     */
Open commit View diff
44 */
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
45
    public function getCertificatePem() {
Open commit View diff
45 public function getCertificatePem() {
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
46
        $pem = '-----BEGIN CERTIFICATE-----' . "\n";
Open commit View diff
46 $pem = '-----BEGIN CERTIFICATE-----' . "\n";
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
47
        $pem .= \chunk_split(\base64_encode($this->_x5c), 64, "\n");
Open commit View diff
47 $pem .= \chunk_split(\base64_encode($this->_x5c), 64, "\n");
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
48
        $pem .= '-----END CERTIFICATE-----' . "\n";
Open commit View diff
48 $pem .= '-----END CERTIFICATE-----' . "\n";
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
49
        return $pem;
Open commit View diff
49 return $pem;
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
50
    }
Open commit View diff
50 }
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
51
Open commit View diff
51
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
52
    /**
Open commit View diff
52 /**
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
53
     * @param string $clientDataHash
Open commit View diff
53 * @param string $clientDataHash
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
54
     */
Open commit View diff
54 */
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
55
    public function validateAttestation($clientDataHash) {
Open commit View diff
55 public function validateAttestation($clientDataHash) {
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
56
        $publicKey = \openssl_pkey_get_public($this->getCertificatePem());
Open commit View diff
56 $publicKey = \openssl_pkey_get_public($this->getCertificatePem());
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
57
Open commit View diff
57
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
58
        if ($publicKey === false) {
Open commit View diff
58 if ($publicKey === false) {
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
59
            throw new WebAuthnException('invalid public key: ' . \openssl_error_string(), WebAuthnException::INVALID_PUBLIC_KEY);
Open commit View diff
59 throw new WebAuthnException('invalid public key: ' . \openssl_error_string(), WebAuthnException::INVALID_PUBLIC_KEY);
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
60
        }
Open commit View diff
60 }
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
61
Open commit View diff
61
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
62
        // Let verificationData be the concatenation of (0x00 || rpIdHash || clientDataHash || credentialId || publicKeyU2F)
Open commit View diff
62 // Let verificationData be the concatenation of (0x00 || rpIdHash || clientDataHash || credentialId || publicKeyU2F)
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
63
        $dataToVerify = "\x00";
Open commit View diff
63 $dataToVerify = "\x00";
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
64
        $dataToVerify .= $this->_authenticatorData->getRpIdHash();
Open commit View diff
64 $dataToVerify .= $this->_authenticatorData->getRpIdHash();
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
65
        $dataToVerify .= $clientDataHash;
Open commit View diff
65 $dataToVerify .= $clientDataHash;
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
66
        $dataToVerify .= $this->_authenticatorData->getCredentialId();
Open commit View diff
66 $dataToVerify .= $this->_authenticatorData->getCredentialId();
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
67
        $dataToVerify .= $this->_authenticatorData->getPublicKeyU2F();
Open commit View diff
67 $dataToVerify .= $this->_authenticatorData->getPublicKeyU2F();
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
68
Open commit View diff
68
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
69
        $coseAlgorithm = $this->_getCoseAlgorithm($this->_alg);
Open commit View diff
69 $coseAlgorithm = $this->_getCoseAlgorithm($this->_alg);
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
70
Open commit View diff
70
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
71
        // check certificate
Open commit View diff
71 // check certificate
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
72
        return \openssl_verify($dataToVerify, $this->_signature, $publicKey, $coseAlgorithm->openssl) === 1;
Open commit View diff
72 return \openssl_verify($dataToVerify, $this->_signature, $publicKey, $coseAlgorithm->openssl) === 1;
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
73
    }
Open commit View diff
73 }
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
74
Open commit View diff
74
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
75
    /**
Open commit View diff
75 /**
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
76
     * validates the certificate against root certificates
Open commit View diff
76 * validates the certificate against root certificates
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
77
     * @param array $rootCas
Open commit View diff
77 * @param array $rootCas
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
78
     * @return boolean
Open commit View diff
78 * @return boolean
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
79
     * @throws WebAuthnException
Open commit View diff
79 * @throws WebAuthnException
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
80
     */
Open commit View diff
80 */
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
81
    public function validateRootCertificate($rootCas) {
Open commit View diff
81 public function validateRootCertificate($rootCas) {
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
82
        $chainC = $this->_createX5cChainFile();
Open commit View diff
82 $chainC = $this->_createX5cChainFile();
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
83
        if ($chainC) {
Open commit View diff
83 if ($chainC) {
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
84
            $rootCas[] = $chainC;
Open commit View diff
84 $rootCas[] = $chainC;
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
85
        }
Open commit View diff
85 }
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
86
Open commit View diff
86
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
87
        $v = \openssl_x509_checkpurpose($this->getCertificatePem(), -1, $rootCas);
Open commit View diff
87 $v = \openssl_x509_checkpurpose($this->getCertificatePem(), -1, $rootCas);
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
88
        if ($v === -1) {
Open commit View diff
88 if ($v === -1) {
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
89
            throw new WebAuthnException('error on validating root certificate: ' . \openssl_error_string(), WebAuthnException::CERTIFICATE_NOT_TRUSTED);
Open commit View diff
89 throw new WebAuthnException('error on validating root certificate: ' . \openssl_error_string(), WebAuthnException::CERTIFICATE_NOT_TRUSTED);
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
90
        }
Open commit View diff
90 }
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
91
        return $v;
Open commit View diff
91 return $v;
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
92
    }
Open commit View diff
92 }
same change 6f14955

[Web] Fix U2F file

Full commit hash
6f14955b698764267f381048cbd23accaf074fd9
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
93
}
Open commit View diff
93 }