Browse Source

Fix cryptoVer constant name to CRYPTO_VER

Change-Id: I46c39f2eceb4d58e49bd6273b87711f35250ab5c
stable-4.6
Shawn Pearce 8 years ago committed by David Pursehouse
parent
commit
2685f4b101
  1. 6
      org.eclipse.jgit/src/org/eclipse/jgit/transport/WalkEncryption.java

6
org.eclipse.jgit/src/org/eclipse/jgit/transport/WalkEncryption.java

@ -175,7 +175,7 @@ abstract class WalkEncryption {
// Size 16, see com.sun.crypto.provider.AESConstants.AES_BLOCK_SIZE // Size 16, see com.sun.crypto.provider.AESConstants.AES_BLOCK_SIZE
static final byte[] ZERO_AES_IV = new byte[16]; static final byte[] ZERO_AES_IV = new byte[16];
private static final String cryptoVer = VERSION; private static final String CRYPTO_VER = VERSION;
private final String cryptoAlg; private final String cryptoAlg;
@ -227,14 +227,14 @@ abstract class WalkEncryption {
@Override @Override
void request(final HttpURLConnection u, final String prefix) { void request(final HttpURLConnection u, final String prefix) {
u.setRequestProperty(prefix + JETS3T_CRYPTO_VER, cryptoVer); u.setRequestProperty(prefix + JETS3T_CRYPTO_VER, CRYPTO_VER);
u.setRequestProperty(prefix + JETS3T_CRYPTO_ALG, cryptoAlg); u.setRequestProperty(prefix + JETS3T_CRYPTO_ALG, cryptoAlg);
} }
@Override @Override
void validate(final HttpURLConnection u, final String prefix) void validate(final HttpURLConnection u, final String prefix)
throws IOException { throws IOException {
validateImpl(u, prefix, cryptoVer, cryptoAlg); validateImpl(u, prefix, CRYPTO_VER, cryptoAlg);
} }
@Override @Override

Loading…
Cancel
Save