Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
briar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
680
Issues
680
List
Boards
Labels
Service Desk
Milestones
Merge Requests
11
Merge Requests
11
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
briar
briar
Commits
00bc8ac7
Verified
Commit
00bc8ac7
authored
Apr 19, 2019
by
akwizgran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include handshake keys when loading all local authors.
parent
75776eb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
bramble-core/src/main/java/org/briarproject/bramble/db/JdbcDatabase.java
...c/main/java/org/briarproject/bramble/db/JdbcDatabase.java
+7
-3
No files found.
bramble-core/src/main/java/org/briarproject/bramble/db/JdbcDatabase.java
View file @
00bc8ac7
...
...
@@ -1782,7 +1782,8 @@ abstract class JdbcDatabase implements Database<Connection> {
ResultSet
rs
=
null
;
try
{
String
sql
=
"SELECT authorId, formatVersion, name, publicKey,"
+
" privateKey, created"
+
" privateKey, handshakePublicKey, handshakePrivateKey,"
+
" created"
+
" FROM localAuthors"
;
ps
=
txn
.
prepareStatement
(
sql
);
rs
=
ps
.
executeQuery
();
...
...
@@ -1793,9 +1794,12 @@ abstract class JdbcDatabase implements Database<Connection> {
String
name
=
rs
.
getString
(
3
);
byte
[]
publicKey
=
rs
.
getBytes
(
4
);
byte
[]
privateKey
=
rs
.
getBytes
(
5
);
long
created
=
rs
.
getLong
(
6
);
byte
[]
handshakePublicKey
=
rs
.
getBytes
(
6
);
byte
[]
handshakePrivateKey
=
rs
.
getBytes
(
7
);
long
created
=
rs
.
getLong
(
8
);
authors
.
add
(
new
LocalAuthor
(
authorId
,
formatVersion
,
name
,
publicKey
,
privateKey
,
created
));
publicKey
,
privateKey
,
handshakePublicKey
,
handshakePrivateKey
,
created
));
}
rs
.
close
();
ps
.
close
();
...
...
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