diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-01-17 12:57:07 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-01-17 12:57:07 +0100 |
commit | bf0fb9129d397f7bbb27ba784890cd9c2102d839 (patch) | |
tree | 1cda2b23794d2d76c2b34cf9454c7718f898ccd0 /common/rfb/CSecurityMSLogonII.h | |
parent | a434ef3377943e89165ac13c537cd0f28be97f84 (diff) | |
download | tigervnc-bf0fb9129d397f7bbb27ba784890cd9c2102d839.tar.gz tigervnc-bf0fb9129d397f7bbb27ba784890cd9c2102d839.zip |
Fix CRLF line endings
Everything else uses LF line endings, so fix up the few stray ones.
Diffstat (limited to 'common/rfb/CSecurityMSLogonII.h')
-rw-r--r-- | common/rfb/CSecurityMSLogonII.h | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/common/rfb/CSecurityMSLogonII.h b/common/rfb/CSecurityMSLogonII.h index 28f0c752..f7c83a3e 100644 --- a/common/rfb/CSecurityMSLogonII.h +++ b/common/rfb/CSecurityMSLogonII.h @@ -1,48 +1,48 @@ -/*
- * Copyright (C) 2022 Dinglan Peng
- *
- * This is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this software; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
- * USA.
- */
-
-#ifndef __C_SECURITY_MSLOGONII_H__
-#define __C_SECURITY_MSLOGONII_H__
-
-#ifndef HAVE_NETTLE
-#error "This header should not be compiled without HAVE_NETTLE defined"
-#endif
-
-#include <nettle/bignum.h>
-#include <rfb/CSecurity.h>
-#include <rfb/Security.h>
-
-namespace rfb {
- class CSecurityMSLogonII : public CSecurity {
- public:
- CSecurityMSLogonII(CConnection* cc);
- virtual ~CSecurityMSLogonII();
- virtual bool processMsg();
- virtual int getType() const { return secTypeMSLogonII; }
- virtual bool isSecure() const { return false; }
-
- private:
- bool readKey();
- void writeCredentials();
-
- mpz_t g, p, A, b, B, k;
- };
-}
-
-#endif
+/* + * Copyright (C) 2022 Dinglan Peng + * + * This is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, + * USA. + */ + +#ifndef __C_SECURITY_MSLOGONII_H__ +#define __C_SECURITY_MSLOGONII_H__ + +#ifndef HAVE_NETTLE +#error "This header should not be compiled without HAVE_NETTLE defined" +#endif + +#include <nettle/bignum.h> +#include <rfb/CSecurity.h> +#include <rfb/Security.h> + +namespace rfb { + class CSecurityMSLogonII : public CSecurity { + public: + CSecurityMSLogonII(CConnection* cc); + virtual ~CSecurityMSLogonII(); + virtual bool processMsg(); + virtual int getType() const { return secTypeMSLogonII; } + virtual bool isSecure() const { return false; } + + private: + bool readKey(); + void writeCredentials(); + + mpz_t g, p, A, b, B, k; + }; +} + +#endif |