mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 20:43:38 +02:00
rcracki_mt: added patch to remove md2 support, as the matching header was removed from openssl
This commit is contained in:
parent
9bb5c9e676
commit
b5bd9e6936
3 changed files with 54 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
AUX rcracki_mt-remove-md2.patch 2087 RMD160 720a8bceec0ac90c85efbab31473b3c72cf18cf1 SHA1 9a1c6255cac48a0bb179a832b7d955df77984ee4 SHA256 17d1f9a21702172933254eb9dbe06cbf29a36d30e6d9eed41f899d262a354cad
|
||||
AUX rcracki_mt-share.patch 438 RMD160 2dd008c7968ea783eebd07c62dbec2bd49a368a4 SHA1 1d5c04691bb985b1ae38a5b56cd3508937d3475a SHA256 5aaaec2cf18edcf4d31ea3ebe277a5654b8b5b57faed19f0163b40fe6fdfffe8
|
||||
DIST rcracki_mt_0.6.4_src.tar.gz 66206 RMD160 83aed86737abeb91e606bfc79b1c24a6ec1454c0 SHA1 696d1227e83974d8ad5a78ca1b5a59dd18283929 SHA256 dc7bbf0b61ac7a4f675a93073e009884aa6bdb28cfcdfd5daffd0307a87275f0
|
||||
EBUILD rcracki_mt-0.6.4.ebuild 857 RMD160 8ad5017ad61eeadd7580b54bc5338789b6ac2fae SHA1 08298c3fbedb455704e30ecffb35d8f2dd491676 SHA256 648e632a624432be2738577e18b4c6a1d49b3fd39156750a604adb553af8d4d5
|
||||
EBUILD rcracki_mt-0.6.4.ebuild 900 RMD160 c735e32b987afd0703832278fde2cd00bc3b658d SHA1 cff36f422a766f75c942d035a4e60fd248f1a38b SHA256 a966548a8038a2466be52763f57df94d23ef9ed5d867d38dc8db80617b54c0d2
|
||||
MISC ChangeLog 262 RMD160 1dced324f6182742434e81783ff6356788d8fa1e SHA1 d544429423d9b8544d51af604470efe37c7f97bb SHA256 05a667250dd782311787605ca4ec6345e614306d1c5ec0bc0bd4681c7cb5d8f3
|
||||
MISC metadata.xml 508 RMD160 c3c7649235effe556d25de3ad8702d350894bf23 SHA1 2fa8a5e470adea782c44c2d83e6d7af81bd11e51 SHA256 92ff0e771e92f2f8e59ba2708a277e5083e4a040886725be2d5dc8d7fafd91cf
|
||||
|
|
|
|||
50
app-crypt/rcracki_mt/files/rcracki_mt-remove-md2.patch
Normal file
50
app-crypt/rcracki_mt/files/rcracki_mt-remove-md2.patch
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
diff -Nru rcracki_mt_0.6.4_src.bak/HashAlgorithm.cpp rcracki_mt_0.6.4_src/HashAlgorithm.cpp
|
||||
--- rcracki_mt_0.6.4_src.bak/HashAlgorithm.cpp 2010-09-28 20:26:07.459283693 +0200
|
||||
+++ rcracki_mt_0.6.4_src/HashAlgorithm.cpp 2010-09-28 20:26:41.567517317 +0200
|
||||
@@ -33,7 +33,6 @@
|
||||
#include "Public.h"
|
||||
|
||||
#include <openssl/des.h>
|
||||
-#include <openssl/md2.h>
|
||||
#include <openssl/md4.h>
|
||||
//#include <openssl/md5.h>
|
||||
#include <openssl/sha.h>
|
||||
@@ -228,16 +227,6 @@
|
||||
MD4_NEW(UnicodePlain, nPlainLen * 2, pHash);
|
||||
}
|
||||
|
||||
-void HashMD2(unsigned char* pPlain, int nPlainLen, unsigned char* pHash)
|
||||
-{
|
||||
- MD2_CTX ctx;
|
||||
- MD2_Init(&ctx);
|
||||
- MD2_Update(&ctx, pPlain, nPlainLen);
|
||||
- MD2_Final(pHash, &ctx);
|
||||
-
|
||||
- //MD2(pPlain, nPlainLen, pHash);
|
||||
-}
|
||||
-
|
||||
void HashMD4(unsigned char* pPlain, int nPlainLen, unsigned char* pHash)
|
||||
{
|
||||
/*MD4_CTX ctx;
|
||||
diff -Nru rcracki_mt_0.6.4_src.bak/HashAlgorithm.h rcracki_mt_0.6.4_src/HashAlgorithm.h
|
||||
--- rcracki_mt_0.6.4_src.bak/HashAlgorithm.h 2010-09-28 20:26:07.458267211 +0200
|
||||
+++ rcracki_mt_0.6.4_src/HashAlgorithm.h 2010-09-28 20:26:57.290284810 +0200
|
||||
@@ -31,7 +31,6 @@
|
||||
|
||||
void HashLM(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
|
||||
void HashNTLM(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
|
||||
-void HashMD2(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
|
||||
void HashMD4(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
|
||||
void HashMD5(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
|
||||
void HashDoubleMD5(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
|
||||
diff -Nru rcracki_mt_0.6.4_src.bak/HashRoutine.cpp rcracki_mt_0.6.4_src/HashRoutine.cpp
|
||||
--- rcracki_mt_0.6.4_src.bak/HashRoutine.cpp 2010-09-28 20:26:07.458267211 +0200
|
||||
+++ rcracki_mt_0.6.4_src/HashRoutine.cpp 2010-09-28 20:27:12.069258760 +0200
|
||||
@@ -42,7 +42,6 @@
|
||||
|
||||
AddHashRoutine("lm", HashLM, 8);
|
||||
AddHashRoutine("ntlm", HashNTLM, 16);
|
||||
- AddHashRoutine("md2", HashMD2, 16);
|
||||
AddHashRoutine("md4", HashMD4, 16);
|
||||
AddHashRoutine("md5", HashMD5, 16);
|
||||
AddHashRoutine("doublemd5", HashDoubleMD5, 16);
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="2"
|
||||
EAPI=2
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
|
|
@ -22,6 +22,7 @@ S="${WORKDIR}/${PN}_${PV}_src"
|
|||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-share.patch"
|
||||
epatch "${FILESDIR}/${PN}-remove-md2.patch"
|
||||
sed -i "s#@@SHARE@@#/usr/share/${P}#g" ChainWalkContext.cpp || die
|
||||
sed -i "s|-O3|$CXXFLAGS|" Makefile || die
|
||||
sed -i "s|\$(LFLAGS)|$LDFLAGS|" Makefile || die
|
||||
|
|
|
|||
Loading…
Reference in a new issue