Merge change 8757 into donut
* changes: Support x509-user-cert mime type in browser.
This commit is contained in:
@@ -76,6 +76,7 @@ class LoadListener extends Handler implements EventHandler {
|
|||||||
static {
|
static {
|
||||||
sCertificateMimeTypeMap = new HashSet<String>();
|
sCertificateMimeTypeMap = new HashSet<String>();
|
||||||
sCertificateMimeTypeMap.add("application/x-x509-ca-cert");
|
sCertificateMimeTypeMap.add("application/x-x509-ca-cert");
|
||||||
|
sCertificateMimeTypeMap.add("application/x-x509-user-cert");
|
||||||
sCertificateMimeTypeMap.add("application/x-pkcs12");
|
sCertificateMimeTypeMap.add("application/x-pkcs12");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -357,6 +357,7 @@ public /* package */ class MimeTypeMap {
|
|||||||
sMimeTypeMap.loadEntry(
|
sMimeTypeMap.loadEntry(
|
||||||
"application/x-webarchive", "webarchive", false); // added
|
"application/x-webarchive", "webarchive", false); // added
|
||||||
sMimeTypeMap.loadEntry("application/x-x509-ca-cert", "crt", false);
|
sMimeTypeMap.loadEntry("application/x-x509-ca-cert", "crt", false);
|
||||||
|
sMimeTypeMap.loadEntry("application/x-x509-user-cert", "crt", false);
|
||||||
sMimeTypeMap.loadEntry("application/x-xcf", "xcf", false);
|
sMimeTypeMap.loadEntry("application/x-xcf", "xcf", false);
|
||||||
sMimeTypeMap.loadEntry("application/x-xfig", "fig", false);
|
sMimeTypeMap.loadEntry("application/x-xfig", "fig", false);
|
||||||
sMimeTypeMap.loadEntry("audio/basic", "snd", false);
|
sMimeTypeMap.loadEntry("audio/basic", "snd", false);
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ public class CertTool {
|
|||||||
|
|
||||||
private void addExtraIntentInfo(Intent intent, String namespace,
|
private void addExtraIntentInfo(Intent intent, String namespace,
|
||||||
String data) {
|
String data) {
|
||||||
intent.putExtra(KEY_ITEM + "1", data);
|
intent.putExtra(KEY_ITEM + "1", data.getBytes());
|
||||||
intent.putExtra(KEY_NAMESPACE + "1", namespace);
|
intent.putExtra(KEY_NAMESPACE + "1", namespace);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ static void save_in_store(EVP_PKEY *pkey)
|
|||||||
RSA *rsa = EVP_PKEY_get1_RSA(pkey);
|
RSA *rsa = EVP_PKEY_get1_RSA(pkey);
|
||||||
EVP_PKEY_set1_RSA(newpkey, rsa);
|
EVP_PKEY_set1_RSA(newpkey, rsa);
|
||||||
PKEY_STORE_free(pkey_store[store_index]);
|
PKEY_STORE_free(pkey_store[store_index]);
|
||||||
pkey_store[store_index].key_len = i2d_RSAPublicKey(rsa, &pkey_store[store_index].public_key);
|
pkey_store[store_index].key_len = i2d_RSA_PUBKEY(rsa, &pkey_store[store_index].public_key);
|
||||||
pkey_store[store_index++].pkey = newpkey;
|
pkey_store[store_index++].pkey = newpkey;
|
||||||
store_index %= KEYGEN_STORE_SIZE;
|
store_index %= KEYGEN_STORE_SIZE;
|
||||||
RSA_free(rsa);
|
RSA_free(rsa);
|
||||||
|
|||||||
Reference in New Issue
Block a user