/openbmc/qemu/crypto/ |
H A D | tlscredsanon.c | 42 trace_qcrypto_tls_creds_anon_load(creds, in qcrypto_tls_creds_anon_load() 43 creds->parent_obj.dir ? creds->parent_obj.dir : "<nodir>"); in qcrypto_tls_creds_anon_load() 84 if (creds->data.client) { in qcrypto_tls_creds_anon_unload() 86 creds->data.client = NULL; in qcrypto_tls_creds_anon_unload() 89 if (creds->data.server) { in qcrypto_tls_creds_anon_unload() 91 creds->data.server = NULL; in qcrypto_tls_creds_anon_unload() 94 if (creds->parent_obj.dh_params) { in qcrypto_tls_creds_anon_unload() 96 creds->parent_obj.dh_params = NULL; in qcrypto_tls_creds_anon_unload() 140 return creds->data.server != NULL; in qcrypto_tls_creds_anon_prop_get_loaded() 142 return creds->data.client != NULL; in qcrypto_tls_creds_anon_prop_get_loaded() [all …]
|
H A D | tlscredspsk.c | 82 creds->parent_obj.dir ? creds->parent_obj.dir : "<nodir>"); in qcrypto_tls_creds_psk_load() 85 if (creds->username) { in qcrypto_tls_creds_psk_load() 127 if (creds->username) { in qcrypto_tls_creds_psk_load() 128 username = creds->username; in qcrypto_tls_creds_psk_load() 163 if (creds->data.client) { in qcrypto_tls_creds_psk_unload() 165 creds->data.client = NULL; in qcrypto_tls_creds_psk_unload() 168 if (creds->data.server) { in qcrypto_tls_creds_psk_unload() 170 creds->data.server = NULL; in qcrypto_tls_creds_psk_unload() 173 if (creds->parent_obj.dh_params) { in qcrypto_tls_creds_psk_unload() 246 g_free(creds->username); in qcrypto_tls_creds_psk_finalize() [all …]
|
H A D | trace-events | 4 qcrypto_tls_creds_load_dh(void *creds, const char *filename) "TLS creds load DH creds=%p filename=%… 5 qcrypto_tls_creds_get_path(void *creds, const char *filename, const char *path) "TLS creds path cre… 8 qcrypto_tls_creds_anon_load(void *creds, const char *dir) "TLS creds anon load creds=%p dir=%s" 11 qcrypto_tls_creds_psk_load(void *creds, const char *dir) "TLS creds psk load creds=%p dir=%s" 14 qcrypto_tls_creds_x509_load(void *creds, const char *dir) "TLS creds x509 load creds=%p dir=%s" 15 …x509_check_basic_constraints(void *creds, const char *file, int status) "TLS creds x509 check basi… 16 …x509_check_key_usage(void *creds, const char *file, int status, int usage, int critical) "TLS cred… 17 …heck_key_purpose(void *creds, const char *file, int status, const char *usage, int critical) "TLS … 18 qcrypto_tls_creds_x509_load_cert(void *creds, int isServer, const char *file) "TLS creds x509 load … 19 qcrypto_tls_creds_x509_load_cert_list(void *creds, const char *file) "TLS creds x509 load cert list… [all …]
|
H A D | tlscredsx509.c | 89 creds, certFile, status); in qcrypto_tls_creds_check_cert_basic_constraints() 543 creds->parent_obj.dir ? creds->parent_obj.dir : "<nodir>"); in qcrypto_tls_creds_x509_load() 577 if (creds->sanityCheck && in qcrypto_tls_creds_x509_load() 602 if (creds->passwordid) { in qcrypto_tls_creds_x509_load() 657 if (creds->data) { in qcrypto_tls_creds_x509_unload() 659 creds->data = NULL; in qcrypto_tls_creds_x509_unload() 707 return creds->data != NULL; in qcrypto_tls_creds_x509_prop_get_loaded() 732 creds->sanityCheck = value; in qcrypto_tls_creds_x509_prop_set_sanity() 763 return creds->sanityCheck; in qcrypto_tls_creds_x509_prop_get_sanity() 817 creds->sanityCheck = true; in qcrypto_tls_creds_x509_init() [all …]
|
H A D | tlscreds.c | 106 if (!creds->dir) { in qcrypto_tls_creds_get_path() 148 creds->verifyPeer = value; in qcrypto_tls_creds_prop_set_verify() 158 return creds->verifyPeer; in qcrypto_tls_creds_prop_get_verify() 169 creds->dir = g_strdup(value); in qcrypto_tls_creds_prop_set_dir() 179 return g_strdup(creds->dir); in qcrypto_tls_creds_prop_get_dir() 200 return g_strdup(creds->priority); in qcrypto_tls_creds_prop_get_priority() 211 creds->endpoint = value; in qcrypto_tls_creds_prop_set_endpoint() 221 return creds->endpoint; in qcrypto_tls_creds_prop_get_endpoint() 250 creds->verifyPeer = true; in qcrypto_tls_creds_init() 259 g_free(creds->dir); in qcrypto_tls_creds_finalize() [all …]
|
H A D | tlssession.c | 38 QCryptoTLSCreds *creds; member 71 object_unref(OBJECT(session->creds)); in qcrypto_tls_session_free() 133 qcrypto_tls_session_new(QCryptoTLSCreds *creds, in qcrypto_tls_session_new() argument 153 session->creds = creds; in qcrypto_tls_session_new() 154 object_ref(OBJECT(creds)); in qcrypto_tls_session_new() 156 if (creds->endpoint != endpoint) { in qcrypto_tls_session_new() 172 if (object_dynamic_cast(OBJECT(creds), in qcrypto_tls_session_new() 177 if (creds->priority != NULL) { in qcrypto_tls_session_new() 213 if (creds->priority != NULL) { in qcrypto_tls_session_new() 247 const char *prio = creds->priority; in qcrypto_tls_session_new() [all …]
|
H A D | tls-cipher-suites.c | 37 QCryptoTLSCreds *creds = QCRYPTO_TLS_CREDS(obj); in qcrypto_tls_cipher_suites_get_data() local 44 trace_qcrypto_tls_cipher_suite_priority(creds->priority); in qcrypto_tls_cipher_suites_get_data() 45 ret = gnutls_priority_init(&pcache, creds->priority, &err); in qcrypto_tls_cipher_suites_get_data() 48 creds->priority, gnutls_strerror(ret)); in qcrypto_tls_cipher_suites_get_data() 90 QCryptoTLSCreds *creds = QCRYPTO_TLS_CREDS(uc); in qcrypto_tls_cipher_suites_complete() local 92 if (!creds->priority) { in qcrypto_tls_cipher_suites_complete()
|
H A D | tlscredspriv.h | 73 int qcrypto_tls_creds_get_path(QCryptoTLSCreds *creds, 79 int qcrypto_tls_creds_get_dh_params_file(QCryptoTLSCreds *creds,
|
H A D | secret_common.c | 208 QCryptoSecretCommon *creds = QCRYPTO_SECRET_COMMON(obj); in qcrypto_secret_prop_set_format() local 209 creds->format = value; in qcrypto_secret_prop_set_format() 217 QCryptoSecretCommon *creds = QCRYPTO_SECRET_COMMON(obj); in qcrypto_secret_prop_get_format() local 218 return creds->format; in qcrypto_secret_prop_get_format()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 233 | 81 --tls-creds=tls0 2>&1 | _filter_qemu_nbd_exports 90 --tls-creds tls0 \ 109 --tls-creds=tls0 2>&1 | _filter_qemu_nbd_exports 118 --tls-creds=tls0 | _filter_qemu_nbd_exports 136 --tls-creds=tls0 2>&1 | _filter_qemu_nbd_exports 159 --tls-creds tls0 \ 176 --tls-creds tls0 \ 203 --tls-creds tls0 \ 208 driver=nbd,path=$nbd_unix_socket,tls-creds=tls0 \ 211 --tls-creds=tls0 2>&1 | _filter_qemu_nbd_exports [all …]
|
H A D | 233.out | 3 == preparing TLS creds == 19 qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': Denied by server for… 25 Did you forget a valid tls-creds? 45 qemu-img: Could not open 'driver=nbd,host=localhost,port=PORT,tls-creds=tls0': Certificate does not… 60 qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': The certificate hasn… 72 qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': Failed to read optio… 73 qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': Failed to read optio… 76 qemu-img: Could not open 'driver=nbd,path=SOCK_DIR/qemu-nbd.sock,tls-creds=tls0': No hostname for c… 102 qemu-img: Could not open 'driver=nbd,path=SOCK_DIR/qemu-nbd.sock,tls-creds=tls0': TLS handshake fai…
|
/openbmc/qemu/migration/ |
H A D | tls.c | 34 Object *creds; in migration_tls_get_creds() local 38 creds = object_resolve_path_component(object_get_objects_root(), tls_creds); in migration_tls_get_creds() 39 if (!creds) { in migration_tls_get_creds() 44 creds, TYPE_QCRYPTO_TLS_CREDS); in migration_tls_get_creds() 78 QCryptoTLSCreds *creds; in migration_tls_channel_process_incoming() local 81 creds = migration_tls_get_creds(QCRYPTO_TLS_CREDS_ENDPOINT_SERVER, errp); in migration_tls_channel_process_incoming() 82 if (!creds) { in migration_tls_channel_process_incoming() 86 tioc = qio_channel_tls_new_server(ioc, creds, migrate_tls_authz(), errp); in migration_tls_channel_process_incoming() 121 QCryptoTLSCreds *creds; in migration_tls_client_create() local 124 if (!creds) { in migration_tls_client_create() [all …]
|
/openbmc/linux/net/core/ |
H A D | scm.c | 49 kuid_t uid = make_kuid(cred->user_ns, creds->uid); in scm_check_creds() 50 kgid_t gid = make_kgid(cred->user_ns, creds->gid); in scm_check_creds() 55 if ((creds->pid == task_tgid_vnr(current) || in scm_check_creds() 171 struct ucred creds; in __scm_send() local 177 err = scm_check_creds(&creds); in __scm_send() 181 p->creds.pid = creds.pid; in __scm_send() 182 if (!p->pid || pid_vnr(p->pid) != creds.pid) { in __scm_send() 185 pid = find_get_pid(creds.pid); in __scm_send() 193 uid = make_kuid(current_user_ns(), creds.uid); in __scm_send() 198 p->creds.uid = uid; in __scm_send() [all …]
|
/openbmc/linux/include/net/ |
H A D | scm.h | 35 struct scm_creds creds; /* Skb credentials */ member 61 scm->creds.pid = pid_vnr(pid); in scm_set_cred() 62 scm->creds.uid = uid; in scm_set_cred() 63 scm->creds.gid = gid; in scm_set_cred() 83 scm->creds.uid = INVALID_UID; in scm_send() 84 scm->creds.gid = INVALID_GID; in scm_send() 175 .pid = scm->creds.pid, in __scm_recv_common() 176 .uid = from_kuid_munged(current_ns, scm->creds.uid), in __scm_recv_common() 177 .gid = from_kgid_munged(current_ns, scm->creds.gid), in __scm_recv_common()
|
/openbmc/linux/net/sunrpc/auth_gss/ |
H A D | gss_rpc_xdr.c | 169 struct svc_cred *creds) in gssx_dec_linux_creds() argument 205 creds->cr_group_info = groups_alloc(N); in gssx_dec_linux_creds() 206 if (creds->cr_group_info == NULL) in gssx_dec_linux_creds() 219 creds->cr_group_info->gid[i] = kgid; in gssx_dec_linux_creds() 221 groups_sort(creds->cr_group_info); in gssx_dec_linux_creds() 225 groups_free(creds->cr_group_info); in gssx_dec_linux_creds() 232 struct svc_cred *creds; in gssx_dec_option_array() local 252 if (!creds) { in gssx_dec_option_array() 259 oa->data[0].value.data = (void *)creds; in gssx_dec_option_array() 283 err = gssx_dec_linux_creds(xdr, creds); in gssx_dec_option_array() [all …]
|
H A D | gss_rpc_upcall.c | 339 data->creds = *(struct svc_cred *)value->data; in gssp_accept_sec_context_upcall() 353 data->creds.cr_raw_principal = in gssp_accept_sec_context_upcall() 355 data->creds.cr_principal = in gssp_accept_sec_context_upcall() 357 gssp_hostbased_service(&data->creds.cr_principal); in gssp_accept_sec_context_upcall() 360 data->creds.cr_targ_princ = in gssp_accept_sec_context_upcall() 362 gssp_hostbased_service(&data->creds.cr_targ_princ); in gssp_accept_sec_context_upcall() 376 free_svc_cred(&data->creds); in gssp_free_upcall_data()
|
/openbmc/linux/drivers/soc/bcm/brcmstb/ |
H A D | biuctrl.c | 116 u32 creds = 0; in mcp_write_pairing_set() local 121 creds = cbc_readl(CPU_CREDIT_REG); in mcp_write_pairing_set() 124 cbc_writel(creds | CPU_CREDIT_REG_MCPx_WR_PAIRING_EN_MASK, in mcp_write_pairing_set() 126 } else if (creds & CPU_CREDIT_REG_MCPx_WR_PAIRING_EN_MASK) { in mcp_write_pairing_set() 128 cbc_writel(creds & ~CPU_CREDIT_REG_MCPx_WR_PAIRING_EN_MASK, in mcp_write_pairing_set()
|
/openbmc/qemu/include/io/ |
H A D | channel-tls.h | 80 QCryptoTLSCreds *creds, 110 QCryptoTLSCreds *creds,
|
/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | nbd-tls-iothread.out | 3 == preparing TLS creds and spare port == 27 "tls-creds": "tls0"}} 39 "export": "drive_image1", "tls-creds": "tls0",
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | vas-sysfs.c | 36 u16 creds; in update_total_credits_store() local 38 err = kstrtou16(buf, 0, &creds); in update_total_credits_store() 48 err = vas_reconfig_capabilties(caps->win_type, creds); in update_total_credits_store() 53 pr_info("Set QoS total credits %u\n", creds); in update_total_credits_store()
|
/openbmc/qemu/ |
H A D | blockdev-nbd.c | 138 QCryptoTLSCreds *creds; in nbd_get_tls_creds() local 147 creds = (QCryptoTLSCreds *) in nbd_get_tls_creds() 149 if (!creds) { in nbd_get_tls_creds() 155 if (!qcrypto_tls_creds_check_endpoint(creds, in nbd_get_tls_creds() 161 return creds; in nbd_get_tls_creds()
|
/openbmc/qemu/tests/unit/ |
H A D | test-crypto-tlscredsx509.c | 44 Object *creds = object_new_with_props( in test_tls_creds_create() local 56 if (!creds) { in test_tls_creds_create() 59 return QCRYPTO_TLS_CREDS(creds); in test_tls_creds_create() 75 QCryptoTLSCreds *creds; in test_tls_creds() local 109 creds = test_tls_creds_create( in test_tls_creds() 117 g_assert(creds == NULL); in test_tls_creds() 119 g_assert(creds != NULL); in test_tls_creds() 131 if (creds) { in test_tls_creds() 132 object_unparent(OBJECT(creds)); in test_tls_creds()
|
/openbmc/qemu/io/ |
H A D | channel-tls.c | 66 QCryptoTLSCreds *creds, in qio_channel_tls_new_server() argument 84 creds, in qio_channel_tls_new_server() 99 trace_qio_channel_tls_new_server(tioc, master, creds, aclname); in qio_channel_tls_new_server() 109 QCryptoTLSCreds *creds, in qio_channel_tls_new_client() argument 127 creds, in qio_channel_tls_new_client() 142 trace_qio_channel_tls_new_client(tioc, master, creds, hostname); in qio_channel_tls_new_client()
|
/openbmc/qemu/docs/system/ |
H A D | vnc-security.rst | 68 -object tls-creds-x509,id=tls0,dir=/etc/pki/qemu,endpoint=server,verify-peer=off \ 69 -vnc :1,tls-creds=tls0 -monitor stdio 92 -object tls-creds-x509,id=tls0,dir=/etc/pki/qemu,endpoint=server,verify-peer=on \ 93 -vnc :1,tls-creds=tls0 -monitor stdio 106 -object tls-creds-x509,id=tls0,dir=/etc/pki/qemu,endpoint=server,verify-peer=on \ 107 -vnc :1,tls-creds=tls0,password=on -monitor stdio 148 -object tls-creds-x509,id=tls0,dir=/etc/pki/qemu,endpoint=server,verify-peer=on \ 149 -vnc :1,tls-creds=tls0,sasl=on -monitor stdio
|
/openbmc/qemu/include/crypto/ |
H A D | tlscreds.h | 63 bool qcrypto_tls_creds_check_endpoint(QCryptoTLSCreds *creds,
|