pkcs11_privkey.c   pkcs11_privkey.c 
skipping to change at line 743 skipping to change at line 743
a_val = p_val = 0; a_val = p_val = 0;
mech.parameter = NULL; mech.parameter = NULL;
mech.parameter_len = 0; mech.parameter_len = 0;
mech.mechanism = pk_to_genmech(pk, &key_type); mech.mechanism = pk_to_genmech(pk, &key_type);
if (!(flags & GNUTLS_PKCS11_OBJ_FLAG_NO_STORE_PUBKEY)) { if (!(flags & GNUTLS_PKCS11_OBJ_FLAG_NO_STORE_PUBKEY)) {
a[a_val].type = CKA_TOKEN; a[a_val].type = CKA_TOKEN;
a[a_val].value = (void *) &tval; a[a_val].value = (void *) &tval;
a[a_val].value_len = sizeof(tval); a[a_val].value_len = sizeof(tval);
a_val++; a_val++;
a[a_val].type = CKA_PRIVATE;
a[a_val].value = (void *) &fval;
a[a_val].value_len = sizeof(fval);
a_val++;
} }
a[a_val].type = CKA_ID; a[a_val].type = CKA_ID;
if (cid == NULL || cid->size == 0) { if (cid == NULL || cid->size == 0) {
ret = gnutls_rnd(GNUTLS_RND_NONCE, id, sizeof(id)); ret = gnutls_rnd(GNUTLS_RND_NONCE, id, sizeof(id));
if (ret < 0) { if (ret < 0) {
gnutls_assert(); gnutls_assert();
goto cleanup; goto cleanup;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/