vfs: check userland buffers before reading them.
[haiku.git] / src / servers / keystore / KeyRequestWindow.h
blob2301aaa06b12868b76b731b1d621fe264580e604
1 /*
2 * Copyright 2012, Michael Lotz, mmlr@mlotz.ch. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _KEY_REQUEST_WINDOW_H
6 #define _KEY_REQUEST_WINDOW_H
9 #include <Message.h>
10 #include <Window.h>
13 class KeyRequestView;
16 class KeyRequestWindow : public BWindow {
17 public:
18 KeyRequestWindow();
19 virtual ~KeyRequestWindow();
21 virtual bool QuitRequested();
22 virtual void MessageReceived(BMessage* message);
24 status_t RequestKey(const BString& keyringName,
25 BMessage& keyMessage);
27 private:
28 KeyRequestView* fRequestView;
29 sem_id fDoneSem;
30 status_t fResult;
34 #endif // _KEY_REQUEST_WINDOW_H