Commit 3631830 1 parent 528fab9 commit 3631830 Copy full SHA for 3631830
File tree 1 file changed +2
-2
lines changed
src/main/java/org/apache/maven/plugins/gpg
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ public final class GpgConfLoader implements Loader {
123
123
/**
124
124
* Maximum key size, see <a href="https://wiki.gnupg.org/LargeKeys">Large Keys</a>.
125
125
*/
126
- private static final long MAX_SIZE = 5 * 1024 + 1L ;
126
+ private static final long MAX_SIZE = 16 * 1024 + 1L ;
127
127
128
128
@ Override
129
129
public byte [] loadKeyRingMaterial (RepositorySystemSession session ) throws IOException {
@@ -137,7 +137,7 @@ public byte[] loadKeyRingMaterial(RepositorySystemSession session) throws IOExce
137
137
if (Files .size (keyPath ) < MAX_SIZE ) {
138
138
return Files .readAllBytes (keyPath );
139
139
} else {
140
- throw new IOException ("Refusing to load key " + keyPath + "; is larger than 5KB " );
140
+ throw new IOException ("Refusing to load key " + keyPath + "; is larger than 16KB " );
141
141
}
142
142
}
143
143
return null ;
You can’t perform that action at this time.
0 commit comments