Lines Matching refs:private_key
275 if (m->private_key) in manager_free()
276 EVP_PKEY_free(m->private_key); in manager_free()
295 if (!m->private_key && hashmap_isempty(m->public_keys)) { in manager_verify_user_record()
304 if (m->private_key) { in manager_verify_user_record()
305 r = user_record_verify(hr, m->private_key); in manager_verify_user_record()
1356 if (m->private_key) { in manager_load_key_pair()
1357 EVP_PKEY_free(m->private_key); in manager_load_key_pair()
1358 m->private_key = NULL; in manager_load_key_pair()
1377 m->private_key = PEM_read_PrivateKey(f, NULL, NULL, NULL); in manager_load_key_pair()
1378 if (!m->private_key) in manager_load_key_pair()
1394 if (m->private_key) { in manager_generate_key_pair()
1395 EVP_PKEY_free(m->private_key); in manager_generate_key_pair()
1396 m->private_key = NULL; in manager_generate_key_pair()
1408 if (EVP_PKEY_keygen(ctx, &m->private_key) <= 0) in manager_generate_key_pair()
1420 if (PEM_write_PUBKEY(fpublic, m->private_key) <= 0) in manager_generate_key_pair()
1434 if (PEM_write_PrivateKey(fprivate, m->private_key, NULL, NULL, 0, NULL, 0) <= 0) in manager_generate_key_pair()
1468 if (m->private_key) in manager_acquire_key_pair()
1493 return user_record_sign(u, m->private_key, ret); in manager_sign_user_record()