Completed
Push — master ( 63a2ed...6e6341 )
by Paul
03:41
created
examples/cli/u2f-server.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 #!/usr/bin/php
2 2
 <?php
3 3
 
4
- /* Copyright (c) 2015 Yubico AB
4
+    /* Copyright (c) 2015 Yubico AB
5 5
  * All rights reserved.
6 6
  *
7 7
  * Redistribution and use in source and binary forms, with or without
@@ -44,38 +44,38 @@  discard block
 block discarded – undo
44 44
 $regs;
45 45
 
46 46
 if(array_key_exists('r', $options)) {
47
-  $mode = "register";
47
+    $mode = "register";
48 48
 } elseif(array_key_exists('a', $options)) {
49
-  if(!array_key_exists('R', $options)) {
49
+    if(!array_key_exists('R', $options)) {
50 50
     print "a registration must be supplied with -R";
51 51
     exit(1);
52
-  }
53
-  $regs = json_decode('[' . $options['R'] . ']');
54
-  $mode = "authenticate";
52
+    }
53
+    $regs = json_decode('[' . $options['R'] . ']');
54
+    $mode = "authenticate";
55 55
 } else {
56
-  print "-r or -a must be used\n";
57
-  exit(1);
56
+    print "-r or -a must be used\n";
57
+    exit(1);
58 58
 }
59 59
 if(!array_key_exists('o', $options)) {
60
-  print "origin must be supplied with -o\n";
61
-  exit(1);
60
+    print "origin must be supplied with -o\n";
61
+    exit(1);
62 62
 }
63 63
 
64 64
 $u2f = new u2flib_server\U2F($options['o']);
65 65
 
66 66
 if($mode === "register") {
67
-  $challenge = $u2f->getRegisterData();
67
+    $challenge = $u2f->getRegisterData();
68 68
 } elseif($mode === "authenticate") {
69
-  $challenge = $u2f->getAuthenticateData($regs);
69
+    $challenge = $u2f->getAuthenticateData($regs);
70 70
 }
71 71
 
72 72
 print json_encode($challenge[0]) . "\n";
73 73
 $response = fgets(STDIN);
74 74
 
75 75
 if($mode === "register") {
76
-  $result = $u2f->doRegister($challenge[0], json_decode($response));
76
+    $result = $u2f->doRegister($challenge[0], json_decode($response));
77 77
 } elseif($mode === "authenticate") {
78
-  $result = $u2f->doAuthenticate($challenge, $regs, json_decode($response));
78
+    $result = $u2f->doAuthenticate($challenge, $regs, json_decode($response));
79 79
 }
80 80
 
81 81
 print json_encode($result) . "\n";
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
 $result;
44 44
 $regs;
45 45
 
46
-if(array_key_exists('r', $options)) {
46
+if (array_key_exists('r', $options)) {
47 47
   $mode = "register";
48
-} elseif(array_key_exists('a', $options)) {
49
-  if(!array_key_exists('R', $options)) {
48
+} elseif (array_key_exists('a', $options)) {
49
+  if (!array_key_exists('R', $options)) {
50 50
     print "a registration must be supplied with -R";
51 51
     exit(1);
52 52
   }
@@ -56,25 +56,25 @@  discard block
 block discarded – undo
56 56
   print "-r or -a must be used\n";
57 57
   exit(1);
58 58
 }
59
-if(!array_key_exists('o', $options)) {
59
+if (!array_key_exists('o', $options)) {
60 60
   print "origin must be supplied with -o\n";
61 61
   exit(1);
62 62
 }
63 63
 
64 64
 $u2f = new u2flib_server\U2F($options['o']);
65 65
 
66
-if($mode === "register") {
66
+if ($mode === "register") {
67 67
   $challenge = $u2f->getRegisterData();
68
-} elseif($mode === "authenticate") {
68
+} elseif ($mode === "authenticate") {
69 69
   $challenge = $u2f->getAuthenticateData($regs);
70 70
 }
71 71
 
72 72
 print json_encode($challenge[0]) . "\n";
73 73
 $response = fgets(STDIN);
74 74
 
75
-if($mode === "register") {
75
+if ($mode === "register") {
76 76
   $result = $u2f->doRegister($challenge[0], json_decode($response));
77
-} elseif($mode === "authenticate") {
77
+} elseif ($mode === "authenticate") {
78 78
   $result = $u2f->doAuthenticate($challenge, $regs, json_decode($response));
79 79
 }
80 80
 
Please login to merge, or discard this patch.
examples/localstorage/index.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
             }
78 78
             return $ret;
79 79
         }
80
-        if($_SERVER['REQUEST_METHOD'] === 'POST') {
81
-            if(isset($_POST['startRegister'])) {
82
-                $regs = json_decode($_POST['registrations']) ? : array();
80
+        if ($_SERVER['REQUEST_METHOD'] === 'POST') {
81
+            if (isset($_POST['startRegister'])) {
82
+                $regs = json_decode($_POST['registrations']) ?: array();
83 83
                 list($data, $reqs) = $u2f->getRegisterData($regs);
84 84
                 echo "var request = " . json_encode($data) . ";\n";
85 85
                 echo "var signs = " . json_encode($reqs) . ";\n";
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             });
102 102
         }, 1000);
103 103
         <?php
104
-            } else if($_POST['doRegister']) {
104
+            } else if ($_POST['doRegister']) {
105 105
                 try {
106 106
                     $data = $u2f->doRegister(json_decode($_POST['request']), json_decode($_POST['doRegister']));
107 107
                     echo "var registration = '" . json_encode($data) . "';\n";
@@ -109,10 +109,10 @@  discard block
 block discarded – undo
109 109
         addRegistration(registration);
110 110
         alert("registration successful!");
111 111
         <?php
112
-                } catch(u2flib_server\Error $e) {
112
+                } catch (u2flib_server\Error $e) {
113 113
                     echo "alert('error:" . $e->getMessage() . "');\n";
114 114
                 }
115
-            } else if(isset($_POST['startAuthenticate'])) {
115
+            } else if (isset($_POST['startAuthenticate'])) {
116 116
                 $regs = json_decode($_POST['registrations']);
117 117
                 $data = $u2f->getAuthenticateData($regs);
118 118
                 echo "var registrations = " . $_POST['registrations'] . ";\n";
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             });
134 134
         }, 1000);
135 135
         <?php
136
-            } else if($_POST['doAuthenticate']) {
136
+            } else if ($_POST['doAuthenticate']) {
137 137
                 $reqs = json_decode($_POST['request']);
138 138
                 $regs = json_decode($_POST['registrations']);
139 139
                 try {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                     echo "var registration = '" . json_encode($data) . "';\n";
142 142
                     echo "addRegistration(registration);\n";
143 143
                     echo "alert('Authentication successful, counter:" . $data->counter . "');\n";
144
-                } catch(u2flib_server\Error $e) {
144
+                } catch (u2flib_server\Error $e) {
145 145
                     echo "alert('error:" . $e->getMessage() . "');\n";
146 146
                 }
147 147
             }
Please login to merge, or discard this patch.
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -1,32 +1,32 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright (c) 2014 Yubico AB
4
- * All rights reserved.
5
- *
6
- * Redistribution and use in source and binary forms, with or without
7
- * modification, are permitted provided that the following conditions are
8
- * met:
9
- *
10
- *   * Redistributions of source code must retain the above copyright
11
- *     notice, this list of conditions and the following disclaimer.
12
- *
13
- *   * Redistributions in binary form must reproduce the above
14
- *     copyright notice, this list of conditions and the following
15
- *     disclaimer in the documentation and/or other materials provided
16
- *     with the distribution.
17
- *
18
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- */
3
+         * Copyright (c) 2014 Yubico AB
4
+         * All rights reserved.
5
+         *
6
+         * Redistribution and use in source and binary forms, with or without
7
+         * modification, are permitted provided that the following conditions are
8
+         * met:
9
+         *
10
+         *   * Redistributions of source code must retain the above copyright
11
+         *     notice, this list of conditions and the following disclaimer.
12
+         *
13
+         *   * Redistributions in binary form must reproduce the above
14
+         *     copyright notice, this list of conditions and the following
15
+         *     disclaimer in the documentation and/or other materials provided
16
+         *     with the distribution.
17
+         *
18
+         * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
+         * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
+         * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
+         * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
+         * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
+         * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
+         * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
+         * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
+         * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
+         * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+         * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
+         */
30 30
 
31 31
 /**
32 32
  * This is a minimal example of U2F registration and authentication.
Please login to merge, or discard this patch.
examples/pdo/index.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     $sel = $pdo->prepare("select * from users where name = ?");
55 55
     $sel->execute(array($name));
56 56
     $user = $sel->fetch();
57
-    if(!$user) {
57
+    if (!$user) {
58 58
         $ins = $pdo->prepare("insert into users (name) values(?)");
59 59
         $ins->execute(array($name));
60 60
         $sel->execute(array($name));
@@ -93,21 +93,21 @@  discard block
 block discarded – undo
93 93
     <script>
94 94
         <?php
95 95
 
96
-        if($_SERVER['REQUEST_METHOD'] === 'POST') {
97
-          if(!$_POST['username']) {
96
+        if ($_SERVER['REQUEST_METHOD'] === 'POST') {
97
+          if (!$_POST['username']) {
98 98
             echo "alert('no username provided!');";
99
-          } else if(!isset($_POST['action']) && !isset($_POST['register2']) && !isset($_POST['authenticate2'])) {
99
+          } else if (!isset($_POST['action']) && !isset($_POST['register2']) && !isset($_POST['authenticate2'])) {
100 100
             echo "alert('no action provided!');";
101 101
           } else {
102 102
             $user = createAndGetUser($_POST['username']);
103 103
 
104
-            if(isset($_POST['action'])) {
105
-              switch($_POST['action']):
104
+            if (isset($_POST['action'])) {
105
+              switch ($_POST['action']):
106 106
                 case 'register':
107 107
                   try {
108 108
                     $data = $u2f->getRegisterData(getRegs($user->id));
109 109
 
110
-                    list($req,$sigs) = $data;
110
+                    list($req, $sigs) = $data;
111 111
                     $_SESSION['regReq'] = json_encode($req);
112 112
                     echo "var req = " . json_encode($req) . ";";
113 113
                     echo "var sigs = " . json_encode($sigs) . ";";
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             });
131 131
         }, 1000);
132 132
         <?php
133
-                  } catch( Exception $e ) {
133
+                  } catch (Exception $e) {
134 134
                     echo "alert('error: " . $e->getMessage() . "');";
135 135
                   }
136 136
 
@@ -157,28 +157,28 @@  discard block
 block discarded – undo
157 157
             });
158 158
         }, 1000);
159 159
         <?php
160
-                  } catch( Exception $e ) {
160
+                  } catch (Exception $e) {
161 161
                     echo "alert('error: " . $e->getMessage() . "');";
162 162
                   }
163 163
 
164 164
                   break;
165 165
 
166 166
               endswitch;
167
-            } else if($_POST['register2']) {
167
+            } else if ($_POST['register2']) {
168 168
               try {
169 169
                 $reg = $u2f->doRegister(json_decode($_SESSION['regReq']), json_decode($_POST['register2']));
170 170
                 addReg($user->id, $reg);
171
-              } catch( Exception $e ) {
171
+              } catch (Exception $e) {
172 172
                 echo "alert('error: " . $e->getMessage() . "');";
173 173
               } finally {
174 174
                 $_SESSION['regReq'] = null;
175 175
               }
176
-            } else if($_POST['authenticate2']) {
176
+            } else if ($_POST['authenticate2']) {
177 177
               try {
178 178
                 $reg = $u2f->doAuthenticate(json_decode($_SESSION['authReq']), getRegs($user->id), json_decode($_POST['authenticate2']));
179 179
                 updateReg($reg);
180 180
                 echo "alert('success: " . $reg->counter . "');";
181
-              } catch( Exception $e ) {
181
+              } catch (Exception $e) {
182 182
                 echo "alert('error: " . $e->getMessage() . "');";
183 183
               } finally {
184 184
                 $_SESSION['authReq'] = null;
Please login to merge, or discard this patch.
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -1,32 +1,32 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright (c) 2014 Yubico AB
4
- * All rights reserved.
5
- *
6
- * Redistribution and use in source and binary forms, with or without
7
- * modification, are permitted provided that the following conditions are
8
- * met:
9
- *
10
- *   * Redistributions of source code must retain the above copyright
11
- *     notice, this list of conditions and the following disclaimer.
12
- *
13
- *   * Redistributions in binary form must reproduce the above
14
- *     copyright notice, this list of conditions and the following
15
- *     disclaimer in the documentation and/or other materials provided
16
- *     with the distribution.
17
- *
18
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- */
3
+     * Copyright (c) 2014 Yubico AB
4
+     * All rights reserved.
5
+     *
6
+     * Redistribution and use in source and binary forms, with or without
7
+     * modification, are permitted provided that the following conditions are
8
+     * met:
9
+     *
10
+     *   * Redistributions of source code must retain the above copyright
11
+     *     notice, this list of conditions and the following disclaimer.
12
+     *
13
+     *   * Redistributions in binary form must reproduce the above
14
+     *     copyright notice, this list of conditions and the following
15
+     *     disclaimer in the documentation and/or other materials provided
16
+     *     with the distribution.
17
+     *
18
+     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
+     * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
+     * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
+     * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
+     * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
+     * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
+     * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
+     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
+     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
+     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+     * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
+     */
30 30
 
31 31
 /**
32 32
  * This is a simple example using PDO and a sqlite database for storing
@@ -94,15 +94,15 @@  discard block
 block discarded – undo
94 94
         <?php
95 95
 
96 96
         if($_SERVER['REQUEST_METHOD'] === 'POST') {
97
-          if(!$_POST['username']) {
97
+            if(!$_POST['username']) {
98 98
             echo "alert('no username provided!');";
99
-          } else if(!isset($_POST['action']) && !isset($_POST['register2']) && !isset($_POST['authenticate2'])) {
99
+            } else if(!isset($_POST['action']) && !isset($_POST['register2']) && !isset($_POST['authenticate2'])) {
100 100
             echo "alert('no action provided!');";
101
-          } else {
101
+            } else {
102 102
             $user = createAndGetUser($_POST['username']);
103 103
 
104 104
             if(isset($_POST['action'])) {
105
-              switch($_POST['action']):
105
+                switch($_POST['action']):
106 106
                 case 'register':
107 107
                   try {
108 108
                     $data = $u2f->getRegisterData(getRegs($user->id));
@@ -130,11 +130,11 @@  discard block
 block discarded – undo
130 130
             });
131 131
         }, 1000);
132 132
         <?php
133
-                  } catch( Exception $e ) {
133
+                    } catch( Exception $e ) {
134 134
                     echo "alert('error: " . $e->getMessage() . "');";
135
-                  }
135
+                    }
136 136
 
137
-                  break;
137
+                    break;
138 138
 
139 139
                 case 'authenticate':
140 140
                   try {
@@ -157,34 +157,34 @@  discard block
 block discarded – undo
157 157
             });
158 158
         }, 1000);
159 159
         <?php
160
-                  } catch( Exception $e ) {
160
+                    } catch( Exception $e ) {
161 161
                     echo "alert('error: " . $e->getMessage() . "');";
162
-                  }
162
+                    }
163 163
 
164
-                  break;
164
+                    break;
165 165
 
166
-              endswitch;
166
+                endswitch;
167 167
             } else if($_POST['register2']) {
168
-              try {
168
+                try {
169 169
                 $reg = $u2f->doRegister(json_decode($_SESSION['regReq']), json_decode($_POST['register2']));
170 170
                 addReg($user->id, $reg);
171
-              } catch( Exception $e ) {
171
+                } catch( Exception $e ) {
172 172
                 echo "alert('error: " . $e->getMessage() . "');";
173
-              } finally {
173
+                } finally {
174 174
                 $_SESSION['regReq'] = null;
175
-              }
175
+                }
176 176
             } else if($_POST['authenticate2']) {
177
-              try {
177
+                try {
178 178
                 $reg = $u2f->doAuthenticate(json_decode($_SESSION['authReq']), getRegs($user->id), json_decode($_POST['authenticate2']));
179 179
                 updateReg($reg);
180 180
                 echo "alert('success: " . $reg->counter . "');";
181
-              } catch( Exception $e ) {
181
+                } catch( Exception $e ) {
182 182
                 echo "alert('error: " . $e->getMessage() . "');";
183
-              } finally {
183
+                } finally {
184 184
                 $_SESSION['authReq'] = null;
185
-              }
185
+                }
186
+            }
186 187
             }
187
-          }
188 188
         }
189 189
         ?>
190 190
     </script>
Please login to merge, or discard this patch.
U2F.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -408,7 +408,7 @@
 block discarded – undo
408 408
      * Fixes a certificate where the signature contains unused bits.
409 409
      *
410 410
      * @param string $cert
411
-     * @return mixed
411
+     * @return string
412 412
      */
413 413
     private function fixSignatureUnusedBits($cert)
414 414
     {
Please login to merge, or discard this patch.
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -1,39 +1,39 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- *
4
- * @copyright (c) 2015, Paul Sohier
5
- * @copyright (c) 2014 Yubico AB
6
- * @license BSD-2-Clause
7
- *
8
- *
9
- * Orignal Copyright:
10
- * Copyright (c) 2014 Yubico AB
11
- * All rights reserved.
12
- *
13
- * Redistribution and use in source and binary forms, with or without
14
- * modification, are permitted provided that the following conditions are
15
- * met:
16
- *
17
- *   * Redistributions of source code must retain the above copyright
18
- *     notice, this list of conditions and the following disclaimer.
19
- *
20
- *   * Redistributions in binary form must reproduce the above
21
- *     copyright notice, this list of conditions and the following
22
- *     disclaimer in the documentation and/or other materials provided
23
- *     with the distribution.
24
- *
25
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
- */
3
+     *
4
+     * @copyright (c) 2015, Paul Sohier
5
+     * @copyright (c) 2014 Yubico AB
6
+     * @license BSD-2-Clause
7
+     *
8
+     *
9
+     * Orignal Copyright:
10
+     * Copyright (c) 2014 Yubico AB
11
+     * All rights reserved.
12
+     *
13
+     * Redistribution and use in source and binary forms, with or without
14
+     * modification, are permitted provided that the following conditions are
15
+     * met:
16
+     *
17
+     *   * Redistributions of source code must retain the above copyright
18
+     *     notice, this list of conditions and the following disclaimer.
19
+     *
20
+     *   * Redistributions in binary form must reproduce the above
21
+     *     copyright notice, this list of conditions and the following
22
+     *     disclaimer in the documentation and/or other materials provided
23
+     *     with the distribution.
24
+     *
25
+     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
+     * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27
+     * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28
+     * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29
+     * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
+     * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
+     * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
+     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
+     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
+     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35
+     * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
+     */
37 37
 namespace paul999\u2f;
38 38
 
39 39
 use paul999\u2f\Exceptions\U2fError;
Please login to merge, or discard this patch.
U2F_interface.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -1,39 +1,39 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- *
4
- * @copyright (c) 2015, Paul Sohier
5
- * @copyright (c) 2014 Yubico AB
6
- * @license BSD-2-Clause
7
- *
8
- *
9
- * Orignal Copyright:
10
- * Copyright (c) 2014 Yubico AB
11
- * All rights reserved.
12
- *
13
- * Redistribution and use in source and binary forms, with or without
14
- * modification, are permitted provided that the following conditions are
15
- * met:
16
- *
17
- *   * Redistributions of source code must retain the above copyright
18
- *     notice, this list of conditions and the following disclaimer.
19
- *
20
- *   * Redistributions in binary form must reproduce the above
21
- *     copyright notice, this list of conditions and the following
22
- *     disclaimer in the documentation and/or other materials provided
23
- *     with the distribution.
24
- *
25
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
- */
3
+     *
4
+     * @copyright (c) 2015, Paul Sohier
5
+     * @copyright (c) 2014 Yubico AB
6
+     * @license BSD-2-Clause
7
+     *
8
+     *
9
+     * Orignal Copyright:
10
+     * Copyright (c) 2014 Yubico AB
11
+     * All rights reserved.
12
+     *
13
+     * Redistribution and use in source and binary forms, with or without
14
+     * modification, are permitted provided that the following conditions are
15
+     * met:
16
+     *
17
+     *   * Redistributions of source code must retain the above copyright
18
+     *     notice, this list of conditions and the following disclaimer.
19
+     *
20
+     *   * Redistributions in binary form must reproduce the above
21
+     *     copyright notice, this list of conditions and the following
22
+     *     disclaimer in the documentation and/or other materials provided
23
+     *     with the distribution.
24
+     *
25
+     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
+     * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27
+     * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28
+     * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29
+     * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
+     * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
+     * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
+     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
+     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
+     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35
+     * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
+     */
37 37
 namespace paul999\u2f;
38 38
 
39 39
 use paul999\u2f\Exceptions\U2fError;
Please login to merge, or discard this patch.
RegisterRequest.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -1,39 +1,39 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- *
4
- * @copyright (c) 2015, Paul Sohier
5
- * @copyright (c) 2014 Yubico AB
6
- * @license BSD-2-Clause
7
- *
8
- *
9
- * Orignal Copyright:
10
- * Copyright (c) 2014 Yubico AB
11
- * All rights reserved.
12
- *
13
- * Redistribution and use in source and binary forms, with or without
14
- * modification, are permitted provided that the following conditions are
15
- * met:
16
- *
17
- *   * Redistributions of source code must retain the above copyright
18
- *     notice, this list of conditions and the following disclaimer.
19
- *
20
- *   * Redistributions in binary form must reproduce the above
21
- *     copyright notice, this list of conditions and the following
22
- *     disclaimer in the documentation and/or other materials provided
23
- *     with the distribution.
24
- *
25
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
- */
3
+     *
4
+     * @copyright (c) 2015, Paul Sohier
5
+     * @copyright (c) 2014 Yubico AB
6
+     * @license BSD-2-Clause
7
+     *
8
+     *
9
+     * Orignal Copyright:
10
+     * Copyright (c) 2014 Yubico AB
11
+     * All rights reserved.
12
+     *
13
+     * Redistribution and use in source and binary forms, with or without
14
+     * modification, are permitted provided that the following conditions are
15
+     * met:
16
+     *
17
+     *   * Redistributions of source code must retain the above copyright
18
+     *     notice, this list of conditions and the following disclaimer.
19
+     *
20
+     *   * Redistributions in binary form must reproduce the above
21
+     *     copyright notice, this list of conditions and the following
22
+     *     disclaimer in the documentation and/or other materials provided
23
+     *     with the distribution.
24
+     *
25
+     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
+     * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27
+     * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28
+     * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29
+     * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
+     * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
+     * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
+     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
+     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
+     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35
+     * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
+     */
37 37
 namespace paul999\u2f;
38 38
 
39 39
 use paul999\u2f\Exceptions\U2fError;
Please login to merge, or discard this patch.
RegisterResponse.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -1,39 +1,39 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- *
4
- * @copyright (c) 2015, Paul Sohier
5
- * @copyright (c) 2014 Yubico AB
6
- * @license BSD-2-Clause
7
- *
8
- *
9
- * Orignal Copyright:
10
- * Copyright (c) 2014 Yubico AB
11
- * All rights reserved.
12
- *
13
- * Redistribution and use in source and binary forms, with or without
14
- * modification, are permitted provided that the following conditions are
15
- * met:
16
- *
17
- *   * Redistributions of source code must retain the above copyright
18
- *     notice, this list of conditions and the following disclaimer.
19
- *
20
- *   * Redistributions in binary form must reproduce the above
21
- *     copyright notice, this list of conditions and the following
22
- *     disclaimer in the documentation and/or other materials provided
23
- *     with the distribution.
24
- *
25
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
- */
3
+     *
4
+     * @copyright (c) 2015, Paul Sohier
5
+     * @copyright (c) 2014 Yubico AB
6
+     * @license BSD-2-Clause
7
+     *
8
+     *
9
+     * Orignal Copyright:
10
+     * Copyright (c) 2014 Yubico AB
11
+     * All rights reserved.
12
+     *
13
+     * Redistribution and use in source and binary forms, with or without
14
+     * modification, are permitted provided that the following conditions are
15
+     * met:
16
+     *
17
+     *   * Redistributions of source code must retain the above copyright
18
+     *     notice, this list of conditions and the following disclaimer.
19
+     *
20
+     *   * Redistributions in binary form must reproduce the above
21
+     *     copyright notice, this list of conditions and the following
22
+     *     disclaimer in the documentation and/or other materials provided
23
+     *     with the distribution.
24
+     *
25
+     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
+     * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27
+     * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28
+     * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29
+     * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
+     * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
+     * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
+     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
+     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
+     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35
+     * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
+     */
37 37
 namespace paul999\u2f;
38 38
 
39 39
 use paul999\u2f\Exceptions\U2fError;
Please login to merge, or discard this patch.
Registration.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -1,39 +1,39 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- *
4
- * @copyright (c) 2015, Paul Sohier
5
- * @copyright (c) 2014 Yubico AB
6
- * @license BSD-2-Clause
7
- *
8
- *
9
- * Orignal Copyright:
10
- * Copyright (c) 2014 Yubico AB
11
- * All rights reserved.
12
- *
13
- * Redistribution and use in source and binary forms, with or without
14
- * modification, are permitted provided that the following conditions are
15
- * met:
16
- *
17
- *   * Redistributions of source code must retain the above copyright
18
- *     notice, this list of conditions and the following disclaimer.
19
- *
20
- *   * Redistributions in binary form must reproduce the above
21
- *     copyright notice, this list of conditions and the following
22
- *     disclaimer in the documentation and/or other materials provided
23
- *     with the distribution.
24
- *
25
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
- */
3
+     *
4
+     * @copyright (c) 2015, Paul Sohier
5
+     * @copyright (c) 2014 Yubico AB
6
+     * @license BSD-2-Clause
7
+     *
8
+     *
9
+     * Orignal Copyright:
10
+     * Copyright (c) 2014 Yubico AB
11
+     * All rights reserved.
12
+     *
13
+     * Redistribution and use in source and binary forms, with or without
14
+     * modification, are permitted provided that the following conditions are
15
+     * met:
16
+     *
17
+     *   * Redistributions of source code must retain the above copyright
18
+     *     notice, this list of conditions and the following disclaimer.
19
+     *
20
+     *   * Redistributions in binary form must reproduce the above
21
+     *     copyright notice, this list of conditions and the following
22
+     *     disclaimer in the documentation and/or other materials provided
23
+     *     with the distribution.
24
+     *
25
+     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
+     * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27
+     * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28
+     * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29
+     * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
+     * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
+     * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
+     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
+     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
+     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35
+     * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
+     */
37 37
 namespace paul999\u2f;
38 38
 
39 39
 use paul999\u2f\Exceptions\U2fError;
Please login to merge, or discard this patch.
AuthenticationResponseInterface.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -1,39 +1,39 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- *
4
- * @copyright (c) 2015, Paul Sohier
5
- * @copyright (c) 2014 Yubico AB
6
- * @license BSD-2-Clause
7
- *
8
- *
9
- * Orignal Copyright:
10
- * Copyright (c) 2014 Yubico AB
11
- * All rights reserved.
12
- *
13
- * Redistribution and use in source and binary forms, with or without
14
- * modification, are permitted provided that the following conditions are
15
- * met:
16
- *
17
- *   * Redistributions of source code must retain the above copyright
18
- *     notice, this list of conditions and the following disclaimer.
19
- *
20
- *   * Redistributions in binary form must reproduce the above
21
- *     copyright notice, this list of conditions and the following
22
- *     disclaimer in the documentation and/or other materials provided
23
- *     with the distribution.
24
- *
25
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
- */
3
+     *
4
+     * @copyright (c) 2015, Paul Sohier
5
+     * @copyright (c) 2014 Yubico AB
6
+     * @license BSD-2-Clause
7
+     *
8
+     *
9
+     * Orignal Copyright:
10
+     * Copyright (c) 2014 Yubico AB
11
+     * All rights reserved.
12
+     *
13
+     * Redistribution and use in source and binary forms, with or without
14
+     * modification, are permitted provided that the following conditions are
15
+     * met:
16
+     *
17
+     *   * Redistributions of source code must retain the above copyright
18
+     *     notice, this list of conditions and the following disclaimer.
19
+     *
20
+     *   * Redistributions in binary form must reproduce the above
21
+     *     copyright notice, this list of conditions and the following
22
+     *     disclaimer in the documentation and/or other materials provided
23
+     *     with the distribution.
24
+     *
25
+     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26
+     * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27
+     * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28
+     * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29
+     * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
+     * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
+     * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
+     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
+     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
+     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35
+     * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
+     */
37 37
 namespace paul999\u2f;
38 38
 
39 39
 use paul999\u2f\Exceptions\U2fError;
Please login to merge, or discard this patch.