diff --git a/Makefile b/Makefile index d49f63fc..e84d1bc4 100755 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ APP=pybitmessage -VERSION=0.3.2 +VERSION=0.3.3 DEST_SHARE=$(DESTDIR)/usr/share DEST_APP=$(DEST_SHARE)/$(APP) @@ -11,7 +11,6 @@ source: tar -cvzf ../$(APP)_$(VERSION).orig.tar.gz ../$(APP)-$(VERSION) --exclude-vcs install: - mkdir -m 755 -p $(DESTDIR)/usr/bin mkdir -m 755 -p $(DEST_APP) mkdir -m 755 -p $(DEST_SHARE)/applications mkdir -m 755 -p $(DEST_APP)/images @@ -35,7 +34,7 @@ install: install -m 644 src/pyelliptic/*.py $(DEST_APP)/pyelliptic install -m 644 src/socks/*.py $(DEST_APP)/socks install -m 644 src/bitmessageqt/*.py $(DEST_APP)/bitmessageqt - install -m 755 debian/pybm $(DESTDIR)/usr/bin/$(APP) + install -m 755 debian/pybm /usr/bin/pybitmessage install -m 644 desktop/$(APP).desktop $(DEST_SHARE)/applications/$(APP).desktop install -m 644 src/images/can-icon-24px.png $(DEST_SHARE)/icons/hicolor/24x24/apps/$(APP).png diff --git a/debian.sh b/debian.sh index 69bdcba8..a26398e3 100755 --- a/debian.sh +++ b/debian.sh @@ -8,7 +8,7 @@ APP=pybitmessage PREV_VERSION=0.3.2 -VERSION=0.3.2 +VERSION=0.3.3 ARCH_TYPE=all #update version numbers automatically - so you don't have to diff --git a/desktop/pybitmessage.desktop b/desktop/pybitmessage.desktop index 2b1b6902..363908dd 100644 --- a/desktop/pybitmessage.desktop +++ b/desktop/pybitmessage.desktop @@ -7,12 +7,12 @@ Comment=Send encrypted messages to another person or to many subscribers Exec=pybitmessage %U Icon=pybitmessage Terminal=false -Categories=Network;Email;Application; -Keywords=Email;E-mail;Newsgroup;Messaging; +Categories=Network;Email;Application +Keywords=Email;E-mail;Newsgroup;Messaging X-MessagingMenu-UsesChatSection=true X-Ubuntu-Gettext-Domain=pybitmessage -Actions=Send;Subscribe;AddressBook; +Actions=Send;Subscribe;AddressBook [Desktop Action Send] Name=Send @@ -27,4 +27,4 @@ OnlyShowIn=Unity; [Desktop Action AddressBook] Name=Address Book Exec=pybitmessage -a -OnlyShowIn=Unity; +OnlyShowIn=Unity; \ No newline at end of file diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index e53fee3a..4f612904 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -650,7 +650,9 @@ class receiveDataThread(threading.Thread): readPosition += signatureLengthLength signature = data[readPosition:readPosition+signatureLength] try: - highlevelcrypto.verify(data[12:readPositionAtBottomOfMessage],signature,sendersPubSigningKey.encode('hex')) + if not highlevelcrypto.verify(data[12:readPositionAtBottomOfMessage],signature,sendersPubSigningKey.encode('hex')): + print 'ECDSA verify failed' + return print 'ECDSA verify passed' except Exception, err: print 'ECDSA verify failed', err @@ -783,7 +785,9 @@ class receiveDataThread(threading.Thread): readPosition += signatureLengthLength signature = decryptedData[readPosition:readPosition+signatureLength] try: - highlevelcrypto.verify(decryptedData[:readPositionAtBottomOfMessage],signature,sendersPubSigningKey.encode('hex')) + if not highlevelcrypto.verify(decryptedData[:readPositionAtBottomOfMessage],signature,sendersPubSigningKey.encode('hex')): + print 'ECDSA verify failed' + return print 'ECDSA verify passed' except Exception, err: print 'ECDSA verify failed', err @@ -1024,7 +1028,9 @@ class receiveDataThread(threading.Thread): readPosition += signatureLengthLength signature = decryptedData[readPosition:readPosition+signatureLength] try: - highlevelcrypto.verify(decryptedData[:positionOfBottomOfAckData],signature,pubSigningKey.encode('hex')) + if not highlevelcrypto.verify(decryptedData[:positionOfBottomOfAckData],signature,pubSigningKey.encode('hex')): + print 'ECDSA verify failed' + return print 'ECDSA verify passed' except Exception, err: print 'ECDSA verify failed', err @@ -1340,7 +1346,9 @@ class receiveDataThread(threading.Thread): signatureLength, signatureLengthLength = decodeVarint(data[readPosition:readPosition+10]) signature = data[readPosition:readPosition+signatureLengthLength] try: - highlevelcrypto.verify(data[8:readPosition],signature,publicSigningKey.encode('hex')) + if not highlevelcrypto.verify(data[8:readPosition],signature,publicSigningKey.encode('hex')): + print 'ECDSA verify failed (within processpubkey)' + return print 'ECDSA verify passed (within processpubkey)' except Exception, err: print 'ECDSA verify failed (within processpubkey)', err diff --git a/src/shared.py b/src/shared.py index 1aaa0d3a..acc8b3a2 100644 --- a/src/shared.py +++ b/src/shared.py @@ -1,4 +1,4 @@ -softwareVersion = '0.3.211' +softwareVersion = '0.3.3' import threading import sys