added some PC-files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@862 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
39
lib/des/des.def
Normal file
39
lib/des/des.def
Normal file
@@ -0,0 +1,39 @@
|
||||
LIBRARY des BASE=0x06000000
|
||||
EXPORTS
|
||||
des_ecb3_encrypt
|
||||
des_cbc_cksum
|
||||
des_cbc_encrypt
|
||||
des_ncbc_encrypt
|
||||
des_3cbc_encrypt
|
||||
des_cfb_encrypt
|
||||
des_ede3_cfb64_encrypt
|
||||
des_ede3_ofb64_encrypt
|
||||
des_ecb_encrypt
|
||||
des_encrypt
|
||||
des_encrypt2
|
||||
des_ede3_cbc_encrypt
|
||||
des_enc_read
|
||||
des_enc_write
|
||||
crypt
|
||||
des_ofb_encrypt
|
||||
des_pcbc_encrypt
|
||||
des_quad_cksum
|
||||
des_random_seed
|
||||
des_random_key
|
||||
des_read_password
|
||||
des_read_2passwords
|
||||
des_read_pw_string
|
||||
des_set_odd_parity
|
||||
des_is_weak_key
|
||||
des_set_key
|
||||
des_key_sched
|
||||
des_string_to_key
|
||||
des_string_to_2keys
|
||||
des_cfb64_encrypt
|
||||
des_ofb64_encrypt
|
||||
des_cblock_print_file
|
||||
des_new_random_key
|
||||
des_init_random_number_generator
|
||||
des_set_random_generator_seed
|
||||
des_set_sequence_number
|
||||
des_generate_random_block
|
1496
lib/des/des.mak
Normal file
1496
lib/des/des.mak
Normal file
File diff suppressed because it is too large
Load Diff
29
lib/des/dllmain.c
Normal file
29
lib/des/dllmain.c
Normal file
@@ -0,0 +1,29 @@
|
||||
#include <Windows.h>
|
||||
|
||||
void msg(char *text)
|
||||
{
|
||||
HWND wnd = GetActiveWindow();
|
||||
|
||||
MessageBox(wnd, text, "KClient message", MB_OK|MB_APPLMODAL);
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain (HANDLE hInst,
|
||||
ULONG reason,
|
||||
LPVOID lpReserved)
|
||||
{
|
||||
WORD wVersionRequested;
|
||||
WSADATA wsaData;
|
||||
int err;
|
||||
switch(reason){
|
||||
case DLL_PROCESS_ATTACH:
|
||||
return FALSE;
|
||||
}
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
WSACleanup();
|
||||
}
|
||||
|
||||
|
||||
msg("Initializing krb4.dll OK");
|
||||
return TRUE;
|
||||
}
|
34
lib/des/passwd_dialog.clw
Normal file
34
lib/des/passwd_dialog.clw
Normal file
@@ -0,0 +1,34 @@
|
||||
; CLW file contains information for the MFC ClassWizard
|
||||
|
||||
[General Info]
|
||||
Version=1
|
||||
LastClass=
|
||||
LastTemplate=CDialog
|
||||
NewFileInclude1=#include "stdafx.h"
|
||||
NewFileInclude2=#include "passwd_dialog.h"
|
||||
LastPage=0
|
||||
|
||||
ClassCount=0
|
||||
|
||||
ResourceCount=2
|
||||
Resource1=IDD_DIALOG1
|
||||
Resource2=IDD_PASSWD_DIALOG
|
||||
|
||||
[DLG:IDD_DIALOG1]
|
||||
Type=1
|
||||
ControlCount=6
|
||||
Control1=IDOK,button,1342242817
|
||||
Control2=IDCANCEL,button,1342242816
|
||||
Control3=IDC_STATIC,static,1342308352
|
||||
Control4=IDC_STATIC,static,1342308352
|
||||
Control5=IDC_EDIT1,edit,1350631552
|
||||
Control6=IDC_EDIT2,edit,1350631584
|
||||
|
||||
[DLG:IDD_PASSWD_DIALOG]
|
||||
Type=1
|
||||
ControlCount=4
|
||||
Control1=IDC_PASSWD_EDIT,edit,1350631456
|
||||
Control2=IDOK,button,1342242817
|
||||
Control3=IDCANCEL,button,1342242816
|
||||
Control4=IDC_STATIC,static,1342177280
|
||||
|
101
lib/des/passwd_dialog.rc
Normal file
101
lib/des/passwd_dialog.rc
Normal file
@@ -0,0 +1,101 @@
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Swedish resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_SVE)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_SWEDISH, SUBLANG_DEFAULT
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_PASSWD_DIALOG DIALOG DISCARDABLE 0, 0, 186, 66
|
||||
STYLE DS_ABSALIGN | DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP |
|
||||
WS_VISIBLE | WS_CAPTION
|
||||
CAPTION "Password query"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
EDITTEXT IDC_PASSWD_EDIT,30,22,125,14,ES_PASSWORD
|
||||
DEFPUSHBUTTON "OK",IDOK,30,45,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,105,45,50,14
|
||||
LTEXT "Please insert password:",IDC_STATIC,30,13,87,8,NOT
|
||||
WS_GROUP
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO DISCARDABLE
|
||||
BEGIN
|
||||
IDD_PASSWD_DIALOG, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 179
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 59
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
#endif // Swedish resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
54
lib/des/passwd_dlg.c
Normal file
54
lib/des/passwd_dlg.c
Normal file
@@ -0,0 +1,54 @@
|
||||
/* passwd_dlg.c - Dialog boxes for Windows95/NT
|
||||
* Author: J<>rgen Karlsson - d93-jka@nada.kth.se
|
||||
* Date: June 1996
|
||||
*/
|
||||
|
||||
#ifdef WIN32 /* Visual C++ 4.0 (Windows95/NT) */
|
||||
#include <Windows.h>
|
||||
#include "passwd_dlg.h"
|
||||
#include "Resource.h"
|
||||
#define passwdBufSZ 64
|
||||
|
||||
char passwd[passwdBufSZ];
|
||||
|
||||
BOOL CALLBACK pwd_dialog_proc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch(uMsg)
|
||||
{
|
||||
case WM_COMMAND:
|
||||
switch(wParam)
|
||||
{
|
||||
case IDOK:
|
||||
if(!GetDlgItemText(hwndDlg,IDC_PASSWD_EDIT, passwd ,passwdBufSZ))
|
||||
EndDialog(hwndDlg, IDCANCEL);
|
||||
case IDCANCEL:
|
||||
EndDialog(hwndDlg, wParam);
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
/* return 0 if ok, 1 otherwise */
|
||||
int pwd_dialog(char *buf, int size)
|
||||
{
|
||||
int i;
|
||||
HWND wnd = GetActiveWindow();
|
||||
HANDLE hInst = GetModuleHandle("des");
|
||||
switch(DialogBox(hInst,MAKEINTRESOURCE(IDD_PASSWD_DIALOG),wnd,pwd_dialog_proc))
|
||||
{
|
||||
case IDOK:
|
||||
strcpy(buf,passwd);
|
||||
for(i=0; passwd[i] != '\0'; i++) passwd[i] = '\0';
|
||||
return 0;
|
||||
case IDCANCEL:
|
||||
default:
|
||||
for(i=0; passwd[i] != '\0'; i++) passwd[i] = '\0';
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif /* WIN32 */
|
11
lib/des/passwd_dlg.h
Normal file
11
lib/des/passwd_dlg.h
Normal file
@@ -0,0 +1,11 @@
|
||||
/* passwd_dlg.h - Dialog boxes for Windows95/NT
|
||||
* Author: J<>rgen Karlsson - d93-jka@nada.kth.se
|
||||
* Date: June 1996
|
||||
*/
|
||||
#ifndef PASSWD_DLG_H
|
||||
#define PASSWD_DLG_H
|
||||
|
||||
int pwd_dialog(char *buf, int size);
|
||||
|
||||
|
||||
#endif /* PASSWD_DLG_H */
|
18
lib/des/resource.h
Normal file
18
lib/des/resource.h
Normal file
@@ -0,0 +1,18 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by passwd_dialog.rc
|
||||
//
|
||||
#define IDD_PASSWD_DIALOG 101
|
||||
#define IDC_EDIT1 1000
|
||||
#define IDC_PASSWD_EDIT 1001
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1002
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
Reference in New Issue
Block a user