Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80f3504
commit 49d7a03
Showing
3 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
app/src/main/java/org/thoughtcrime/securesms/push/DomainFrontingDigicertTrustStore.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.thoughtcrime.securesms.push; | ||
|
||
import android.content.Context; | ||
|
||
import org.thoughtcrime.securesms.R; | ||
import org.whispersystems.signalservice.api.push.TrustStore; | ||
|
||
import java.io.InputStream; | ||
|
||
public class DomainFrontingDigicertTrustStore implements TrustStore { | ||
|
||
private final Context context; | ||
|
||
public DomainFrontingDigicertTrustStore(Context context) { | ||
this.context = context.getApplicationContext(); | ||
} | ||
|
||
@Override | ||
public InputStream getKeyStoreInputStream() { | ||
return context.getResources().openRawResource(R.raw.censorship_digicert); | ||
} | ||
|
||
@Override | ||
public String getKeyStorePassword() { | ||
return "whisper"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.