mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
Remove cryptography
As discussed in #694, vim encryption uses old, obsolete algorithms that are poorly implemented. Since insecure cryptography is worse than no cryptgraphy, the community voted in favor of removing all crypto. Various alternatives to the old crypto is being discussed in #701. Closes #694.
This commit is contained in:

committed by
Thiago de Arruda

parent
32d018b57e
commit
85338fe1d5
@@ -14,7 +14,6 @@
|
||||
|
||||
#include "nvim/vim.h"
|
||||
#include "nvim/ex_docmd.h"
|
||||
#include "nvim/blowfish.h"
|
||||
#include "nvim/buffer.h"
|
||||
#include "nvim/charset.h"
|
||||
#include "nvim/diff.h"
|
||||
@@ -40,7 +39,6 @@
|
||||
#include "nvim/misc1.h"
|
||||
#include "nvim/misc2.h"
|
||||
#include "nvim/keymap.h"
|
||||
#include "nvim/crypt.h"
|
||||
#include "nvim/file_search.h"
|
||||
#include "nvim/garray.h"
|
||||
#include "nvim/move.h"
|
||||
@@ -224,7 +222,6 @@ static void ex_digraphs(exarg_T *eap);
|
||||
static void ex_set(exarg_T *eap);
|
||||
static void ex_nohlsearch(exarg_T *eap);
|
||||
static void ex_match(exarg_T *eap);
|
||||
static void ex_X(exarg_T *eap);
|
||||
static void ex_fold(exarg_T *eap);
|
||||
static void ex_foldopen(exarg_T *eap);
|
||||
static void ex_folddo(exarg_T *eap);
|
||||
@@ -9074,15 +9071,6 @@ static void ex_match(exarg_T *eap)
|
||||
eap->nextcmd = find_nextcmd(end);
|
||||
}
|
||||
|
||||
/*
|
||||
* ":X": Get crypt key
|
||||
*/
|
||||
static void ex_X(exarg_T *eap)
|
||||
{
|
||||
if (get_crypt_method(curbuf) == 0 || blowfish_self_test() == OK)
|
||||
(void)get_crypt_key(TRUE, TRUE);
|
||||
}
|
||||
|
||||
static void ex_fold(exarg_T *eap)
|
||||
{
|
||||
if (foldManualAllowed(TRUE))
|
||||
|
Reference in New Issue
Block a user