diff options
Diffstat (limited to 'src/schema.rs')
| -rw-r--r-- | src/schema.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/schema.rs b/src/schema.rs index 9e157c7..f159d83 100644 --- a/src/schema.rs +++ b/src/schema.rs | |||
| @@ -178,7 +178,7 @@ pub struct MetuId { | |||
| 178 | passwd: String, | 178 | passwd: String, |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | // TODO: this will arrive encrypted <13-04-21, yigit> // | 181 | /// The plaintext of the initial user authentication request |
| 182 | #[derive(Serialize, Deserialize, Debug, PartialEq)] | 182 | #[derive(Serialize, Deserialize, Debug, PartialEq)] |
| 183 | pub struct AuthRequest { | 183 | pub struct AuthRequest { |
| 184 | pub student_id: String, | 184 | pub student_id: String, |
| @@ -186,6 +186,13 @@ pub struct AuthRequest { | |||
| 186 | pub public_key: String, | 186 | pub public_key: String, |
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | /// Ciphertext of the initial authentication request, or what we will receive | ||
| 190 | #[derive(Serialize, Deserialize, Debug)] | ||
| 191 | pub struct InitialAuthRequest { | ||
| 192 | pub c: String, | ||
| 193 | pub key: String, | ||
| 194 | } | ||
| 195 | |||
| 189 | lazy_static! { | 196 | lazy_static! { |
| 190 | static ref OUR_STUDENTS: HashSet<(&'static str, &'static str)> = { | 197 | static ref OUR_STUDENTS: HashSet<(&'static str, &'static str)> = { |
| 191 | [ | 198 | [ |
