~ubuntu-branches/debian/sid/italc/sid

« back to all changes in this revision

Viewing changes to ica/win32/winvnc/winvnc/inifile.h

  • Committer: Package Import Robot
  • Author(s): Mike Gabriel
  • Date: 2014-08-14 14:23:53 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20140814142353-6oih48wrz6xjtd95
Tags: 1:2.0.2+dfsg1-1
* New upstream release.
* debian/watch:
  + Mangle Debian version (due to new +dfsg1 upstream version suffix).
* debian/rules:
  + Provide get-orig-source rule, repack upstream sources: Remove non-DFSG
    licensed files sha1.c and sha1.h (which upstream directly took from
    RFC 3174.
  + Drop win32 related files when repacking upstream sources via
    get-orig-source.
* debian/control:
  + Add dbg:packages for iTALC.
  + Bump Standards: to 3.9.5. No changes needed.
  + Add R (italc-client): zenity or kde-baseapps-bin (for ica wrapper
    script).
* Desktop integration:
  + Update .desktop files. Add .desktop file for imc (iTALC Management
    Console).
  + Use pkexec to launch iTALC Management Console.
* DebConf:
  + When setting up iTALC roles, ensure that the default group ('root')
    gets used if an empty string is provided as group name.
  + Capture non-existing group names and default to group 'root' instead.
    Also, detect existence of groups correctly, now.
  + Default to "root" group only if previously set iTALC role groups were
    not set or do not exist (anymore).
  + Loop on group input screens if a group does not exist (for
    use_existing_groups == true).
  + Always default to "No" for the delete-group-confirmation-question
    screens.
  + Provide option to system-wide setup XDG autostart for iTALC client
    applet. (Closes: #731476).
  + Reset LogonGroups= in iTALC.conf on every package configuration, so
    DebConf configured groups get placed into iTALC.conf correctly.
  + Update PO files.
* debian/copyright:
  + Update file to match changes in upstream release.
  + Drop copyright information for removed files ica/x11/common/sha1.{c,h}.
  + Drop copyright information for removed files in ica/win32/.
* debian/patches:
  + Drop 002_use-v4l-videodev2.patch, 004_x2go-nx-noxdamage.patch,
    021_man-page-patch-in.patch. Applied upstream.
  + Refresh 031_fix-spelling-errors.patch.
  + Update 001_set-static-libdir-and-rpath-for-cmake.patch. Adapt
    block that hard-sets LIB_DIR to /usr/lib/italc.
  + Add 007_use-openssl-sha.patch. Build against openssl/sha.h, don't use
    dropped, non-DFSG licensed files sha1.c and sha1.h.
  + Add 030_fix-man-pages.patch. Fix a hyphen-used-as-minus-sign issue and a
    spelling error.
* debian/italc-client.prerm:
  + On package purgal, only remove groups if we previously explicitly created
    them as iTALC roles.
* debian/italc-client.postinst:
  + Ensure that $DISPLAY is unset before evoking the imc -createkeypair
    command.
* lintian:
  + Drop unused override (spelling-error-in-binary).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/////////////////////////////////////////////////////////////////////////////
2
 
//  Copyright (C) 2002-2010 Ultr@VNC Team Members. All Rights Reserved.
3
 
//
4
 
//  This program is free software; you can redistribute it and/or modify
5
 
//  it under the terms of the GNU General Public License as published by
6
 
//  the Free Software Foundation; either version 2 of the License, or
7
 
//  (at your option) any later version.
8
 
//
9
 
//  This program is distributed in the hope that it will be useful,
10
 
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
//  GNU General Public License for more details.
13
 
//
14
 
//  You should have received a copy of the GNU General Public License
15
 
//  along with this program; if not, write to the Free Software
16
 
//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
17
 
//  USA.
18
 
//
19
 
// If the source code for the program is not available from the place from
20
 
// which you received this file, check 
21
 
// http://www.uvnc.com/
22
 
//
23
 
////////////////////////////////////////////////////////////////////////////
24
 
 
25
 
#include <windows.h>
26
 
#if (!defined(_WINVNC_INIFILE))
27
 
#define _WINVNC_INIFILE
28
 
 
29
 
bool Copy_to_Temp(char *tempfile);
30
 
bool Copy_to_Secure_from_temp(char *tempfile);
31
 
#define INIFILE_NAME "ultravnc.ini"
32
 
 
33
 
class IniFile
34
 
{
35
 
 
36
 
// Fields
37
 
public:
38
 
        char myInifile[MAX_PATH];
39
 
 
40
 
// Methods
41
 
public:
42
 
        // Make the desktop thread & window proc friends
43
 
 
44
 
        IniFile();
45
 
        ~IniFile();
46
 
        bool WriteString(char *key1, char *key2,char *value);
47
 
        bool WritePassword(char *value);
48
 
        bool WritePassword2(char *value); //PGM
49
 
        bool WriteInt(char *key1, char *key2,int value);
50
 
        int ReadInt(char *key1, char *key2,int Defaultvalue);
51
 
        void ReadString(char *key1, char *key2,char *value,int valuesize);
52
 
        void ReadPassword(char *value,int valuesize);
53
 
        void ReadPassword2(char *value,int valuesize); //PGM
54
 
        void IniFileSetSecure();
55
 
        //void IniFileSetTemp();
56
 
        void IniFileSetTemp(char *lpCmdLine);
57
 
        void copy_to_secure();
58
 
 
59
 
    bool IsWritable();
60
 
 
61
 
protected:
62
 
                
63
 
};
64
 
#endif