mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 04:18:53 +01:00
Check the return value from Signature.verify(). *cough*
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
package net.sf.briar.api.protocol;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.security.InvalidKeyException;
|
||||
import java.security.SignatureException;
|
||||
import java.security.GeneralSecurityException;
|
||||
|
||||
public interface BatchBuilder {
|
||||
|
||||
@@ -13,5 +12,5 @@ public interface BatchBuilder {
|
||||
void setSignature(byte[] sig);
|
||||
|
||||
/** Builds and returns the batch. */
|
||||
Batch build() throws IOException, SignatureException, InvalidKeyException;
|
||||
Batch build() throws IOException, GeneralSecurityException;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
package net.sf.briar.api.protocol;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.security.InvalidKeyException;
|
||||
import java.security.SignatureException;
|
||||
import java.security.GeneralSecurityException;
|
||||
import java.util.Map;
|
||||
|
||||
public interface HeaderBuilder {
|
||||
@@ -20,5 +19,5 @@ public interface HeaderBuilder {
|
||||
void setSignature(byte[] sig);
|
||||
|
||||
/** Builds and returns the header. */
|
||||
Header build() throws IOException, SignatureException, InvalidKeyException;
|
||||
Header build() throws IOException, GeneralSecurityException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user