From cf707bf5e3468e0f7902ee94c210bd93f5f28325 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Tue, 22 Feb 2022 16:34:09 +0000 Subject: [PATCH] Remove crypto::bcrypt functions --- lib/src/fnc/crypto.rs | 15 --------------- lib/src/fnc/mod.rs | 2 -- lib/src/sql/function.rs | 2 -- 3 files changed, 19 deletions(-) diff --git a/lib/src/fnc/crypto.rs b/lib/src/fnc/crypto.rs index 29fa69bf..36ccaa83 100644 --- a/lib/src/fnc/crypto.rs +++ b/lib/src/fnc/crypto.rs @@ -67,21 +67,6 @@ pub mod argon2 { } } -pub mod bcrypt { - - use crate::dbs::Runtime; - use crate::err::Error; - use crate::sql::value::Value; - - pub fn cmp(_: &Runtime, _args: Vec) -> Result { - todo!() - } - - pub fn gen(_: &Runtime, _args: Vec) -> Result { - todo!() - } -} - pub mod pbkdf2 { use crate::dbs::Runtime; diff --git a/lib/src/fnc/mod.rs b/lib/src/fnc/mod.rs index ab35ea84..9ebb96d2 100644 --- a/lib/src/fnc/mod.rs +++ b/lib/src/fnc/mod.rs @@ -41,8 +41,6 @@ pub async fn run(ctx: &Runtime, name: &String, args: Vec) -> Result args::check(ctx, name, args, Args::One, crypto::sha512), "crypto::argon2::compare" => args::check(ctx, name, args, Args::Two, crypto::argon2::cmp), "crypto::argon2::generate" => args::check(ctx, name, args, Args::One, crypto::argon2::gen), - "crypto::bcrypt::compare" => args::check(ctx, name, args, Args::Two, crypto::bcrypt::cmp), - "crypto::bcrypt::generate" => args::check(ctx, name, args, Args::One, crypto::bcrypt::gen), "crypto::pbkdf2::compare" => args::check(ctx, name, args, Args::Two, crypto::pbkdf2::cmp), "crypto::pbkdf2::generate" => args::check(ctx, name, args, Args::One, crypto::pbkdf2::gen), "crypto::scrypt::compare" => args::check(ctx, name, args, Args::Two, crypto::scrypt::cmp), diff --git a/lib/src/sql/function.rs b/lib/src/sql/function.rs index 0cfd9eb7..f9e82d09 100644 --- a/lib/src/sql/function.rs +++ b/lib/src/sql/function.rs @@ -185,8 +185,6 @@ fn function_crypto(i: &str) -> IResult<&str, &str> { tag("crypto::sha512"), tag("crypto::argon2::compare"), tag("crypto::argon2::generate"), - tag("crypto::bcrypt::compare"), - tag("crypto::bcrypt::generate"), tag("crypto::pbkdf2::compare"), tag("crypto::pbkdf2::generate"), tag("crypto::scrypt::compare"),