mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-12-22 05:18:48 -05:00
pgp uses rng from tomwu, mDispatch does pgp sync, somehow failing async
This commit is contained in:
parent
940b792d21
commit
819882d9b0
@ -25,11 +25,14 @@ cd mailiverse/install && sudo ./setup-java.remote
|
|||||||
6. Have ant installed:
|
6. Have ant installed:
|
||||||
sudo apt-get install ant --yes
|
sudo apt-get install ant --yes
|
||||||
|
|
||||||
7. Add lines to the hosts file for the target machine:
|
7. Add the line to the hosts file for the target machine:
|
||||||
|
|
||||||
|
So let's say your target machine was named: joesmail.com
|
||||||
|
And it's IP was: 192.168.1.243
|
||||||
|
|
||||||
sudo nano /etc/hosts
|
sudo nano /etc/hosts
|
||||||
add the lines:
|
add the lines:
|
||||||
SOME-IP-ADDRESS mail.whateverthenameofyourdomainis
|
192.168.1.243 mail.joesmail.com
|
||||||
SOME-IP-ADDRESS whateverthenameofyourdomainis
|
|
||||||
|
|
||||||
This could also be done on a DNS server, if you control one..
|
This could also be done on a DNS server, if you control one..
|
||||||
|
|
||||||
|
@ -1520,6 +1520,7 @@ BigInteger.prototype.square = bnSquare;
|
|||||||
//
|
//
|
||||||
// RSA implementation
|
// RSA implementation
|
||||||
|
|
||||||
|
/*
|
||||||
function SecureRandom(){
|
function SecureRandom(){
|
||||||
function nextBytes(byteArray){
|
function nextBytes(byteArray){
|
||||||
for(var n = 0; n < byteArray.length;n++){
|
for(var n = 0; n < byteArray.length;n++){
|
||||||
@ -1528,6 +1529,7 @@ function SecureRandom(){
|
|||||||
}
|
}
|
||||||
this.nextBytes = nextBytes;
|
this.nextBytes = nextBytes;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
function RSA() {
|
function RSA() {
|
||||||
/**
|
/**
|
||||||
|
@ -64,6 +64,9 @@ mDispatch = {
|
|||||||
if (mode == 'worker' && startsWith(cmd,'srp'))
|
if (mode == 'worker' && startsWith(cmd,'srp'))
|
||||||
mode = 'async';
|
mode = 'async';
|
||||||
|
|
||||||
|
if (startsWith(cmd, 'pgp'))
|
||||||
|
mode = 'sync';
|
||||||
|
|
||||||
if (mode == 'sync')
|
if (mode == 'sync')
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user