Skip to content

Commit 990dda4

Browse files
committed
Added lisence header
1 parent fcf1f02 commit 990dda4

File tree

3 files changed

+50
-4
lines changed

3 files changed

+50
-4
lines changed

rust/src/android_editor.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
// Copyright 2017 astonbitecode
2+
// This file is part of rust-keylock password manager.
3+
//
4+
// rust-keylock is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// rust-keylock is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU General Public License
15+
// along with rust-keylock. If not, see <http://www.gnu.org/licenses/>.
116
use rust_keylock::{Editor, UserSelection, Menu, Safe, UserOption, MessageSeverity,
217
RklConfiguration};
318
use super::{StringCallback, StringListCallback, ShowEntryCallback, ShowEntriesSetCallback,

rust/src/lib.rs

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright 2017 astonbitecode
2+
// This file is part of rust-keylock password manager.
3+
//
4+
// rust-keylock is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// rust-keylock is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU General Public License
15+
// along with rust-keylock. If not, see <http://www.gnu.org/licenses/>.
16+
117
#[macro_use]
218
extern crate log;
319
#[macro_use]
@@ -203,8 +219,7 @@ pub extern "C" fn execute(show_menu_cb: StringCallback,
203219
edit_configuration_cb: StringListCallback,
204220
log_cb: LogCallback,
205221
cert_file_path_java_string: *const c_char) {
206-
207-
let cert_file_path = to_rust_string(cert_file_path_java_string);
222+
let cert_file_path = to_rust_string(cert_file_path_java_string);
208223
::std::env::set_var("SSL_CERT_FILE", cert_file_path);
209224
let (tx, rx): (Sender<UserSelection>, Receiver<UserSelection>) = mpsc::channel();
210225
// Release the lock before calling the execute.
@@ -372,8 +387,8 @@ pub extern "C" fn user_option_selected(label: *const c_char,
372387
};
373388

374389
tx.send(UserSelection::UserOption(UserOption::from((to_rust_string(label),
375-
to_rust_string(value),
376-
to_rust_string(short_label)))))
390+
to_rust_string(value),
391+
to_rust_string(short_label)))))
377392
.unwrap();
378393
debug!("user_option_selected sent UserSelection to the TX");
379394
}

rust/src/logger.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright 2017 astonbitecode
2+
// This file is part of rust-keylock password manager.
3+
//
4+
// rust-keylock is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// rust-keylock is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU General Public License
15+
// along with rust-keylock. If not, see <http://www.gnu.org/licenses/>.
16+
117
use log::{self, LogRecord, LogLevel, LogMetadata, LogLevelFilter};
218
use super::LogCallback;
319

0 commit comments

Comments
 (0)