vnc-auth-sasl.h (7398166ddf7c6dbbc9cae6ac69bb2feda14b40ac) | vnc-auth-sasl.h (b76806d4ec5c55d36bf5508f1405d132a4b862de) |
---|---|
1/* 2 * QEMU VNC display driver: SASL auth protocol 3 * 4 * Copyright (C) 2009 Red Hat, Inc 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 16 unchanged lines hidden (view full) --- 25#ifndef QEMU_VNC_AUTH_SASL_H 26#define QEMU_VNC_AUTH_SASL_H 27 28#include <sasl/sasl.h> 29 30typedef struct VncStateSASL VncStateSASL; 31typedef struct VncDisplaySASL VncDisplaySASL; 32 | 1/* 2 * QEMU VNC display driver: SASL auth protocol 3 * 4 * Copyright (C) 2009 Red Hat, Inc 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 16 unchanged lines hidden (view full) --- 25#ifndef QEMU_VNC_AUTH_SASL_H 26#define QEMU_VNC_AUTH_SASL_H 27 28#include <sasl/sasl.h> 29 30typedef struct VncStateSASL VncStateSASL; 31typedef struct VncDisplaySASL VncDisplaySASL; 32 |
33#include "qemu/acl.h" | |
34#include "qemu/main-loop.h" | 33#include "qemu/main-loop.h" |
34#include "authz/base.h" |
|
35 36struct VncStateSASL { 37 sasl_conn_t *conn; 38 /* If we want to negotiate an SSF layer with client */ 39 bool wantSSF; 40 /* If we are now running the SSF layer */ 41 bool runSSF; 42 /* --- 12 unchanged lines hidden (view full) --- 55 unsigned int encodedLength; 56 unsigned int encodedRawLength; 57 unsigned int encodedOffset; 58 char *username; 59 char *mechlist; 60}; 61 62struct VncDisplaySASL { | 35 36struct VncStateSASL { 37 sasl_conn_t *conn; 38 /* If we want to negotiate an SSF layer with client */ 39 bool wantSSF; 40 /* If we are now running the SSF layer */ 41 bool runSSF; 42 /* --- 12 unchanged lines hidden (view full) --- 55 unsigned int encodedLength; 56 unsigned int encodedRawLength; 57 unsigned int encodedOffset; 58 char *username; 59 char *mechlist; 60}; 61 62struct VncDisplaySASL { |
63 qemu_acl *acl; | 63 QAuthZ *authz; 64 char *authzid; |
64}; 65 66void vnc_sasl_client_cleanup(VncState *vs); 67 68size_t vnc_client_read_sasl(VncState *vs); 69size_t vnc_client_write_sasl(VncState *vs); 70 71void start_auth_sasl(VncState *vs); 72 73#endif /* QEMU_VNC_AUTH_SASL_H */ | 65}; 66 67void vnc_sasl_client_cleanup(VncState *vs); 68 69size_t vnc_client_read_sasl(VncState *vs); 70size_t vnc_client_write_sasl(VncState *vs); 71 72void start_auth_sasl(VncState *vs); 73 74#endif /* QEMU_VNC_AUTH_SASL_H */ |