aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/Security.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2023-01-09 19:01:35 +0100
committerPierre Ossman <ossman@cendio.se>2023-02-01 21:17:12 +0100
commitd98720b736eb908d63c1ecb3779fc2a3cd9f4914 (patch)
tree4d548eba62bcabe0892054d547b157ba1178249f /win/rfb_win32/Security.h
parent6881c895ab317bd302addac5f228b7367136017f (diff)
downloadtigervnc-d98720b736eb908d63c1ecb3779fc2a3cd9f4914.tar.gz
tigervnc-d98720b736eb908d63c1ecb3779fc2a3cd9f4914.zip
Use std::vector for basic data arrays
Avoid our own custom types in favour of what's already included with C++.
Diffstat (limited to 'win/rfb_win32/Security.h')
-rw-r--r--win/rfb_win32/Security.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/win/rfb_win32/Security.h b/win/rfb_win32/Security.h
index 15825192..85317fae 100644
--- a/win/rfb_win32/Security.h
+++ b/win/rfb_win32/Security.h
@@ -24,7 +24,8 @@
#ifndef __RFB_WIN32_SECURITY_H__
#define __RFB_WIN32_SECURITY_H__
-#include <rdr/types.h>
+#include <stdint.h>
+#include <vector>
#include <rfb_win32/LocalMem.h>
#include <rfb_win32/TCharArray.h>
#include <aclapi.h>
@@ -64,10 +65,9 @@ namespace rfb {
};
// Helper class for handling SIDs
- struct Sid : rdr::U8Array {
+ struct Sid : std::vector<uint8_t> {
Sid() {}
- operator PSID() const {return (PSID)buf;}
- PSID takePSID() {PSID r = (PSID)buf; buf = 0; return r;}
+ operator PSID() const {return (PSID)data();}
static PSID copySID(const PSID sid);