Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
auth
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
id
auth
Commits
33ded555
Commit
33ded555
authored
Mar 27, 2019
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update deps (fix u2f encoding error)
parent
7570ba15
Pipeline
#2635
passed with stages
in 2 minutes and 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
vendor/git.autistici.org/ai3/go-common/ldap/compositetypes/composite_types.go
....org/ai3/go-common/ldap/compositetypes/composite_types.go
+5
-4
vendor/vendor.json
vendor/vendor.json
+3
-3
No files found.
vendor/git.autistici.org/ai3/go-common/ldap/compositetypes/composite_types.go
View file @
33ded555
...
@@ -103,7 +103,8 @@ func UnmarshalEncryptedKey(s string) (*EncryptedKey, error) {
...
@@ -103,7 +103,8 @@ func UnmarshalEncryptedKey(s string) (*EncryptedKey, error) {
//
//
// The serialized format follows part of the U2F standard and just
// The serialized format follows part of the U2F standard and just
// stores 64 bytes of the public key immediately followed by the key
// stores 64 bytes of the public key immediately followed by the key
// handle data, with no encoding.
// handle data, with no encoding. Note that the public key itself is a
// serialization of the elliptic curve parameters.
//
//
// The data in U2FRegistration is still encoded, but it can be turned
// The data in U2FRegistration is still encoded, but it can be turned
// into a usable form (github.com/tstranex/u2f.Registration) later.
// into a usable form (github.com/tstranex/u2f.Registration) later.
...
@@ -122,13 +123,13 @@ func (r *U2FRegistration) Marshal() string {
...
@@ -122,13 +123,13 @@ func (r *U2FRegistration) Marshal() string {
// UnmarshalU2FRegistration parses a U2FRegistration from its serialized format.
// UnmarshalU2FRegistration parses a U2FRegistration from its serialized format.
func
UnmarshalU2FRegistration
(
s
string
)
(
*
U2FRegistration
,
error
)
{
func
UnmarshalU2FRegistration
(
s
string
)
(
*
U2FRegistration
,
error
)
{
if
len
(
s
)
<
6
4
{
if
len
(
s
)
<
6
5
{
return
nil
,
errors
.
New
(
"badly encoded u2f registration"
)
return
nil
,
errors
.
New
(
"badly encoded u2f registration"
)
}
}
b
:=
[]
byte
(
s
)
b
:=
[]
byte
(
s
)
return
&
U2FRegistration
{
return
&
U2FRegistration
{
PublicKey
:
b
[
:
6
4
],
PublicKey
:
b
[
:
6
5
],
KeyHandle
:
b
[
6
4
:
],
KeyHandle
:
b
[
6
5
:
],
},
nil
},
nil
}
}
...
...
vendor/vendor.json
View file @
33ded555
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
"revisionTime"
:
"2019-02-17T09:01:06Z"
"revisionTime"
:
"2019-02-17T09:01:06Z"
},
},
{
{
"checksumSHA1"
:
"
X14iCbFCOfaIai/TPi4VJ/OBZjc
="
,
"checksumSHA1"
:
"
ETt1H7ZXeT+mOGVuWDvgGBVx98k
="
,
"path"
:
"git.autistici.org/ai3/go-common/ldap/compositetypes"
,
"path"
:
"git.autistici.org/ai3/go-common/ldap/compositetypes"
,
"revision"
:
"
301958e3493e263eb6ea269bf7b8644fbcd9739
4"
,
"revision"
:
"
95125bd587550f8f2ae1e7c412bb0ef94671f01
4"
,
"revisionTime"
:
"2019-03-2
1T10:42:03
Z"
"revisionTime"
:
"2019-03-2
7T08:48:39
Z"
},
},
{
{
"checksumSHA1"
:
"mfFIqmwojDqQdJvjLI3y7YCQ+2c="
,
"checksumSHA1"
:
"mfFIqmwojDqQdJvjLI3y7YCQ+2c="
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment