]>
Commit | Line | Data |
---|---|---|
bc1c8867 AM |
1 | diff -up ecryptfs-utils-84/src/key_mod/ecryptfs_key_mod_pkcs11_helper.c.fixsigness ecryptfs-utils-84/src/key_mod/ecryptfs_key_mod_pkcs11_helper.c |
2 | --- ecryptfs-utils-84/src/key_mod/ecryptfs_key_mod_pkcs11_helper.c.fixsigness 2011-01-04 14:15:58.711761181 +0100 | |
3 | +++ ecryptfs-utils-84/src/key_mod/ecryptfs_key_mod_pkcs11_helper.c 2011-01-04 14:15:58.744761153 +0100 | |
4 | @@ -1144,7 +1144,7 @@ static int tf_pkcs11h_key_x509file(struc | |
5 | goto out; | |
6 | } | |
7 | ||
8 | - if ((subgraph_key_ctx->pkcs11h_data.certificate_blob_size = i2d_X509 (x509, NULL)) < 0 ) { | |
9 | + if ((ssize_t)(subgraph_key_ctx->pkcs11h_data.certificate_blob_size = i2d_X509 (x509, NULL)) < 0 ) { | |
10 | syslog(LOG_ERR, "PKCS#11: Cannot read decode certificate"); | |
11 | rc = -EIO; | |
12 | goto out; | |
13 | @@ -1165,7 +1165,7 @@ static int tf_pkcs11h_key_x509file(struc | |
14 | */ | |
15 | p = subgraph_key_ctx->pkcs11h_data.certificate_blob; | |
16 | ||
17 | - if ((subgraph_key_ctx->pkcs11h_data.certificate_blob_size = i2d_X509 (x509, &p)) < 0) { | |
18 | + if ((ssize_t)(subgraph_key_ctx->pkcs11h_data.certificate_blob_size = i2d_X509 (x509, &p)) < 0) { | |
19 | syslog(LOG_ERR, "PKCS#11: Cannot read decode certificate"); | |
20 | goto out; | |
21 | } |