public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/web/inc/lib/WebAuthn/Attestation/Format/None.php
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
<?php
4
namespace lbuchs\WebAuthn\Attestation\Format;
5
use lbuchs\WebAuthn\Attestation\AuthenticatorData;
6
use lbuchs\WebAuthn\WebAuthnException;
8
class None extends FormatBase {
11
public function __construct($AttestionObject, AuthenticatorData $authenticatorData) {
12
parent::__construct($AttestionObject, $authenticatorData);
13
}
16
/*
17
* returns the key certificate in PEM format
18
* @return string
19
*/
20
public function getCertificatePem() {
21
return null;
22
}
24
/**
25
* @param string $clientDataHash
26
*/
27
public function validateAttestation($clientDataHash) {
28
return true;
29
}
31
/**
32
* validates the certificate against root certificates.
33
* Format 'none' does not contain any ca, so always false.
34
* @param array $rootCas
35
* @return boolean
36
* @throws WebAuthnException
37
*/
38
public function validateRootCertificate($rootCas) {
39
return false;
40
}
41
}