Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem trying to run the CDSA DES sample program.

22 views
Skip to first unread message

Dave

unread,
Jan 7, 2011, 9:10:35 AM1/7/11
to
System is bl860c running OpenVMS 8.3-1h1. (patches and other
products listed at the end)

I am trying to compile and run the DES sample program supplied in SYS
$COMMON:[SYSHLP.EXAMPLES.CDSA.DES].

I have followed the instructions meticulously, however when I try to
execute the command and encrypt a file, I get

TESSCO Technologies - Unauthorized use is prohibited

Username: system
Password:
Last interactive login on Thursday, 6-JAN-2011 15:19:17.89
Last non-interactive login on Friday, 7-JAN-2011 07:11:11.24
TABBUD:SYSTEM>> set def sys$common:[cdsa]
TABBUD:SYSTEM>>
TABBUD:SYSTEM>> dir/date/size=all

Directory SYS$COMMON:[CDSA]

CDSAFFDB.DIR;1 12/16 6-JAN-2011 15:25:17.38
CRL.DIR;1 1/16 11-OCT-2007 12:28:11.05
DOCS.DIR;1 1/16 11-OCT-2007 12:28:11.58
INCLUDES.DIR;1 4/16 11-OCT-2007 12:28:12.19
REGISTRY.DIR;1 1/16 6-JAN-2011 15:25:17.38
SIGN.DIR;1 1/16 11-OCT-2007 12:28:18.87

Total of 6 files, 20/96 blocks.
TABBUD:SYSTEM>>
TABBUD:SYSTEM>> delete [.cdsaffdb...]*.*.*
TABBUD$SYSTEM>> delete cdsaffdb.dir.*
TABBUD$SYSTEM>>
TABBUD$SYSTEM>> delete [.registry...]*.*.*
........ recursively until empty
TABBUD$SYSTEM>> delete registry.dir.*
TABBUD$SYSTEM>>
TABBUD$SYSTEM>> dir/date/size=all

Directory SYS$COMMON:[CDSA]

CRL.DIR;1 1/16 11-OCT-2007 12:28:11.05
DOCS.DIR;1 1/16 11-OCT-2007 12:28:11.58
INCLUDES.DIR;1 4/16 11-OCT-2007 12:28:12.19
SIGN.DIR;1 1/16 11-OCT-2007 12:28:18.87

Total of 4 files, 7/64 blocks.
TABBUD$SYSTEM>>
TABBUD$SYSTEM>> define CDSA$DEBUG true
TABBUD$SYSTEM>>
TABBUD$SYSTEM>> @sys$startup:cdsa$initialize

*** Creating INITIALIZE lock
*** Obtaining INITIALIZE lock

CDSA-I-InitCDSA, Initializing CDSA...
*** Installing MDS
MDS installed successfully.
*** Installing CSSM
Module installed successfully.
*** Installing FFDL
Module installed successfully.
*** Installing 509CL
Module installed successfully.
*** Installing 509TP
Module installed successfully.
*** Installing EAYCSP
Module installed successfully.
*** Installing MAF_BSAFE
Module installed successfully.
*** Installing INSPKICLTP300
Module installed successfully.
*** Installing INTELAC
Module installed successfully.
*** Installing INHRSDUMMY
Module installed successfully.
*** Installing INHRSEMM
Module installed successfully.
*** Installing INHRSPWBSP
Module installed successfully.
CDSA-I-InitCDSA, CDSA Initialization complete

CDSA-I-InitSecDel, Initializing Secure Delivery...
*** Installing CDSA$VALIDATE_LIBSHR
Install completed successfully.
Installing CDSA$REVOKE_LIBSHR
Install completed successfully.
*** Installing VALIDATE_SHR
Module installed successfully.
*** Installing VALIDATE_EMM_SHR
Module installed successfully.
CDSA-I-InitSecDel, Secure Delivery Initialization complete
*** Releasing INITIALIZE lock
*** Deleteing INITIALIZE lock

TABBUD$SYSTEM>>
TABBUD$SYSTEM>> dir/date/size=all

Directory SYS$COMMON:[CDSA]

CDSAFFDB.DIR;1 12/16 7-JAN-2011 07:48:02.46
CRL.DIR;1 1/16 11-OCT-2007 12:28:11.05
DOCS.DIR;1 1/16 11-OCT-2007 12:28:11.58
INCLUDES.DIR;1 4/16 11-OCT-2007 12:28:12.19
REGISTRY.DIR;1 1/16 7-JAN-2011 07:48:02.46
SIGN.DIR;1 1/16 11-OCT-2007 12:28:18.87

Total of 6 files, 20/96 blocks.
TABBUD$SYSTEM>>
TABBUD$SYSTEM>> set def sys$common:[syshlp.examples.cdsa.des]
TABBUD$SYSTEM>> dir/date/size=all

Directory SYS$COMMON:[SYSHLP.EXAMPLES.CDSA.DES]

BUILD_DES.COM;1 1/16 14-NOV-2001 15:51:29.42
DES.C;1 11/16 9-DEC-2002 14:46:59.70
DES.OPT;1 1/16 14-NOV-2001 14:53:47.98
DO_DES.C;1 20/32 10-DEC-2002 13:45:05.13
LOGIN.TST;1 1/16 7-JAN-2011 07:54:57.99
README.TXT;1 4/16 7-MAY-2007 13:28:31.68

Total of 6 files, 41/112 blocks.
TABBUD$SYSTEM>>
TABBUD$SYSTEM>> @build_des
TABBUD$SYSTEM>> dir/date/size=all

Directory SYS$COMMON:[SYSHLP.EXAMPLES.CDSA.DES]

BUILD_DES.COM;1 1/16 14-NOV-2001 15:51:29.42
DES.C;1 11/16 9-DEC-2002 14:46:59.70
DES.EXE;1 50/64 7-JAN-2011 07:57:24.53
DES.LIS;1 22/32 7-JAN-2011 07:57:23.44
DES.OBJ;1 24/32 7-JAN-2011 07:57:23.45
DES.OPT;1 1/16 14-NOV-2001 14:53:47.98
DO_DES.C;1 20/32 10-DEC-2002 13:45:05.13
DO_DES.LIS;1 35/48 7-JAN-2011 07:57:23.86
DO_DES.OBJ;1 28/32 7-JAN-2011 07:57:23.86
LOGIN.TST;1 1/16 7-JAN-2011 07:54:57.99
README.TXT;1 4/16 7-MAY-2007 13:28:31.68

Total of 11 files, 197/320 blocks.
TABBUD$SYSTEM>>
TABBUD$SYSTEM>>
TABBUD$SYSTEM>> des :== $SYS$COMMON:[SYSHLP.EXAMPLES.CDSA.DES]des.exe
TABBUD$SYSTEM>>
TABBUD$SYSTEM>> des -e -k "this is a test" login.tst login.xxx
CSSM_Init: CSSM error 0x1003
TABBUD$SYSTEM>>
TABBUD$SYSTEM>> dir/date/size=all

Directory SYS$COMMON:[SYSHLP.EXAMPLES.CDSA.DES]

BUILD_DES.COM;1 1/16 14-NOV-2001 15:51:29.42
DES.C;1 11/16 9-DEC-2002 14:46:59.70
DES.EXE;1 50/64 7-JAN-2011 07:57:24.53
DES.LIS;1 22/32 7-JAN-2011 07:57:23.44
DES.OBJ;1 24/32 7-JAN-2011 07:57:23.45
DES.OPT;1 1/16 14-NOV-2001 14:53:47.98
DO_DES.C;1 20/32 10-DEC-2002 13:45:05.13
DO_DES.LIS;1 35/48 7-JAN-2011 07:57:23.86
DO_DES.OBJ;1 28/32 7-JAN-2011 07:57:23.86
LOGIN.TST;1 1/16 7-JAN-2011 07:54:57.99
login.xxx;1 0/0 7-JAN-2011 07:58:49.54
README.TXT;1 4/16 7-MAY-2007 13:28:31.68

Total of 13 files, 197/320 blocks.
TABBUD$SYSTEM>>

As you can see, this created "login.xxx", however it is empty.

TABBUD$SYSTEM>>
TABBUD$SYSTEM>> trans :== $SYS$SYSDEVICE:[SYS0.SYSCOMMON.SYSEXE]CDSA
$OUTPUT_ERROR.EXE
TABBUD$SYSTEM>>
TABBUD$SYSTEM>> $ trans -h 0x1003
Error: CSSMERR_CSSM_MDS_ERROR
The MDS could not be accessed to complete the operation

TABBUD$SYSTEM>>

----------------------------------------------------------------
Note also.

TABBUD$SYSTEM>> set def [-.aes]
TABBUD$SYSTEM>> dir/date/size=all

Directory SYS$COMMON:[SYSHLP.EXAMPLES.CDSA.AES]

AES.C;1 11/16 2-AUG-2004 13:43:02.75
AES.OPT;1 1/16 2-AUG-2004 13:43:02.76
AES_BUILD.COM;1 1/16 6-AUG-2004 09:05:10.91
AES_README.TXT;1 6/16 7-MAY-2007 13:27:38.85
DO_AES.C;1 17/32 2-AUG-2004 13:43:02.85

Total of 5 files, 36/96 blocks.
TABBUD$SYSTEM>>
TABBUD$SYSTEM>> @aes_build
TABBUD$SYSTEM>> aes :== $SYS$COMMON:[SYSHLP.EXAMPLES.CDSA.AES]aes.exe
TABBUD$SYSTEM>> create login.tst
test
test1
this is a test
test 2
Exit
TABBUD$SYSTEM>> aes -e -k "this is a test" login.tst login.xxx
CSSM_Init: CSSM error 0x1003
TABBUD$SYSTEM>>
TABBUD$SYSTEM>> dir/date/size=all

Directory SYS$COMMON:[SYSHLP.EXAMPLES.CDSA.AES]

AES.C;1 11/16 2-AUG-2004 12:40:55.95
AES.EXE;1 50/64 7-JAN-2011 08:02:49.92
AES.LIS;1 22/32 7-JAN-2011 08:02:48.79
AES.OBJ;1 24/32 7-JAN-2011 08:02:48.79
AES.OPT;1 1/16 26-JUL-2004 16:06:29.46
AES_BUILD.COM;1 1/16 6-AUG-2004 09:05:10.89
AES_README.TXT;1 6/16 7-MAY-2007 13:27:38.83
DO_AES.C;1 17/32 2-AUG-2004 12:40:52.65
DO_AES.LIS;1 30/32 7-JAN-2011 08:02:49.23
DO_AES.OBJ;1 28/32 7-JAN-2011 08:02:49.23
LOGIN.TST;1 1/16 7-JAN-2011 08:04:02.67
login.xxx;1 0/0 7-JAN-2011 08:04:58.86

Total of 12 files, 191/304 blocks.
TABBUD$SYSTEM>>

i.e. SAME RESULT.

Has anyone seen this before?

Note the procedure works on my V8.4 node, unfortunately I am not
prepared to test it on any of my other V8.3-1H1 nodes incase there are
consequences. The node I am currently working on is used for this
specific type of testing

additional information:

TABBUD$SYSTEM>> product show history
------------------------------------ ----------- ----------- ---
-----------
PRODUCT KIT TYPE OPERATION VAL DATE
------------------------------------ ----------- ----------- ---
-----------
HP I64VMS VMS831H1I_SYS_MUP V13.0 Patch Install Val 16-DEC-2010
HP I64VMS VMS831H1I_FIBRE_SCSI V8.0 Patch Install Val 16-DEC-2010
HP I64VMS VMS831H1I_DEBUG V3.0 Patch Install Val 16-DEC-2010
HP I64VMS VMS831H1I_DDTM V2.0 Patch Install Val 16-DEC-2010
HP I64VMS VMS831H1I_ACMELDAP V2.0 Patch Install Val 16-DEC-2010
HP I64VMS SSL V1.4-335 Full LP Install Val 08-NOV-2010
HP I64VMS SSL V1.3-284 Full LP Remove - 08-NOV-2010
HP I64VMS JAVA60 V1.6-1 Full LP Install Val 08-NOV-2010
HP I64VMS VMS831H1I_UPDATE V9.0 Patch Install Val 08-NOV-2010
HP I64VMS VMS831H1I_PCSI V2.0 Patch Install Val 08-NOV-2010
HP I64VMS VMS831H1I_SYS_MUP V11.0 Patch Install Val 23-JUL-2010
HP I64VMS VMS831H1I_ACC V2.0 Patch Install Val 23-JUL-2010
HP I64VMS VMS831H1I_DCL V2.0 Patch Install Val 23-JUL-2010
HP I64VMS VMS831H1I_DDTM V1.0 Patch Install Val 23-JUL-2010
HP I64VMS VMS831H1I_HYPERSORT V2.0 Patch Install Val 23-JUL-2010
HP I64VMS VMS831H1I_IA64_LINK V1.0 Patch Install Val 23-JUL-2010
HP I64VMS VMS831H1I_LIBRTL V1.0 Patch Install Val 23-JUL-2010
HP I64VMS VMS831H1I_LOGIN V1.0 Patch Install Val 23-JUL-2010
HP I64VMS VMS831H1I_RPC V1.0 Patch Install Val 23-JUL-2010
HP I64VMS VMS831H1I_XFC V2.0 Patch Install Val 23-JUL-2010
HP I64VMS VMS831H1I_UPDATE V8.0 Patch Install Val 23-JUL-2010
HP I64VMS OSIFM_BL860C V4.21-A Full LP Remove - 23-JUL-2010
HP I64VMS OSIFM_BL860C V4.21-A Full LP Install Val 23-JUL-2010
HP I64VMS VMS831H1I_BACKUP V1.0 Patch Install Val 22-JUN-2010
HP I64VMS VMS831H1I_FIBRE_SCSI V6.0 Patch Install Val 27-APR-2010
HP I64VMS VMS831H1I_HYPERSORT V2.0 Patch Install Val 27-APR-2010
HP I64VMS VMS831H1I_PTHREAD V2.0 Patch Install Val 27-APR-2010
HP I64VMS VMS831H1I_SYS V10.0 Patch Install Val 27-APR-2010
HP I64VMS LTT V4.5-1 Full LP Install (U) 28-MAR-2010
HP I64VMS TCPIP V5.6-9ECO5 Full LP Install Val 09-MAR-2010
HP I64VMS TCPIP V5.6-9ECO3 Full LP Remove - 09-MAR-2010
HP I64VMS VMS831H1I_ACRTL V4.0 Patch Install Val 18-JAN-2010
HP I64VMS VMS831H1I_BASRTL V1.0 Patch Install Val 18-JAN-2010
HP I64VMS VMS831H1I_LAN V3.0 Patch Install Val 18-JAN-2010
HP I64VMS VMS831H1I_UPDATE V7.0 Patch Install Val 18-JAN-2010
HP I64VMS SAMBA V1.1-1 Full LP Install Val 30-NOV-2009
HP I64VMS SAMBA V1.1-1 Full LP Remove - 30-NOV-2009
HP I64VMS SAMBA V1.1-1 Full LP Install Val 30-NOV-2009
HP I64VMS VMS831H1I_JOBCTL V3.0 Patch Install Val 14-SEP-2009
HP I64VMS VMS831H1I_SYS V7.0 Patch Install Val 14-SEP-2009
HP I64VMS VMS831H1I_PTHREAD V1.0 Patch Install Val 04-SEP-2009
HP I64VMS VMS831H1I_IPMIAPI V1.0 Patch Install Val 04-SEP-2009
HP I64VMS VMS831H1I_SHADOWING V2.0 Patch Install Val 04-SEP-2009
HP I64VMS VMS831H1I_TDF V1.0 Patch Install Val 04-SEP-2009
HP I64VMS VMS831H1I_SYS V6.0 Patch Install Val 04-SEP-2009
HP I64VMS VMS831H1I_SMGRTL_MUP V1.0 Patch Install Val 13-JUL-2009
HP I64VMS VMS831H1I_ACMELDAP V1.0 Patch Install Val 10-JUL-2009
HP I64VMS VMS831H1I_COBRTL V1.0 Patch Install Val 10-JUL-2009
HP I64VMS VMS831H1I_LOGIN V1.0 Patch Install Val 10-JUL-2009
HP I64VMS VMS831H1I_SYS V4.0 Patch Install Val 10-JUL-2009
HP I64VMS VMS831H1I_UPDATE V6.0 Patch Install Val 10-JUL-2009
HP I64VMS VMS831H1I_DCL V1.0 Patch Install Val 11-JUN-2009
HP I64VMS VMS831H1I_MANAGE V3.0 Patch Install Val 11-JUN-2009
HP I64VMS OSIFM_BL860C V4.21 Full LP Remove - 11-JUN-2009
HP I64VMS OSIFM_BL860C V4.21 Full LP Install Val 11-JUN-2009
HP I64VMS VMS831H1I_DELETE V1.0 Patch Install Val 12-MAY-2009
HP I64VMS VMS831H1I_DRIVER V1.0 Patch Install Val 12-MAY-2009
HP I64VMS VMS831H1I_IPC V2.0 Patch Install Val 12-MAY-2009
HP I64VMS VMS831H1I_NETACP V1.0 Patch Install Val 12-MAY-2009
HP I64VMS VMS831H1I_USB V1.0 Patch Install Val 12-MAY-2009
HP I64VMS CSWS V2.1-1 Full LP Install Val 23-MAR-2009
HP I64VMS VMS831H1I_MAILSHR V1.0 Patch Install Val 23-MAR-2009
HP I64VMS VMS831H1I_XFC V1.0 Patch Install Val 23-MAR-2009
HP I64VMS VMS831H1I_UPDATE V5.0 Patch Install Val 23-MAR-2009
HP I64VMS CSWS V2.1-1 Full LP Install Val 21-MAR-2009
HP I64VMS CSWS V2.1-1 Full LP Install Val 21-MAR-2009
HP I64VMS OSIFM_BL860C V4.11 Full LP Remove - 20-MAR-2009
HP I64VMS OSIFM_BL860C V4.11 Full LP Install Val 20-MAR-2009
HP I64VMS CSWS V2.1-1 Full LP Install Val 11-MAR-2009
HP I64VMS VMS831H1I_UPDATE V4.0 Patch Install Val 23-FEB-2009
HP I64VMS TCPIP V5.6-9ECO3 Full LP Install Val 23-FEB-2009
HP I64VMS TCPIP V5.6-9ECO2 Full LP Remove - 23-FEB-2009
HP I64VMS VMS831H1I_DEBUG V2.0 Patch Install Val 16-JAN-2009
HP I64VMS VMS831H1I_PPPD V1.0 Patch Install Val 16-JAN-2009
HP I64VMS VMS831H1I_JOBCTL V2.0 Patch Install Val 12-DEC-2008
HP I64VMS VMS831H1I_ACRTL V3.0 Patch Install Val 12-DEC-2008
HP I64VMS VMS831H1I_SYS V3.0 Patch Install Val 12-DEC-2008
HP I64VMS VMS831H1I_SHADOWING V1.0 Patch Install Val 12-DEC-2008
HP I64VMS VMS831H1I_ICXXL V2.0 Patch Install Val 12-DEC-2008
HP I64VMS VMS831H1I_UPDATE V3.0 Patch Install Val 12-DEC-2008
HP I64VMS VMS831H1I_BASRTL V1.0 Patch Install Val 29-OCT-2008
HP I64VMS VMS831H1I_COPY V2.0 Patch Install Val 29-OCT-2008
HP I64VMS VMS831H1I_F11X V1.0 Patch Install Val 29-OCT-2008
HP I64VMS VMS831H1I_FIBRE_SCSI V3.0 Patch Install Val 29-OCT-2008
HP I64VMS VMS831H1I_HYPERSORT V1.0 Patch Install Val 29-OCT-2008
HP I64VMS VMS831H1I_IA64_LINK V1.0 Patch Install Val 29-OCT-2008
HP I64VMS VMS831H1I_IVMSLOA V1.0 Patch Install Val 29-OCT-2008
HP I64VMS VMS831H1I_LAN V2.0 Patch Install Val 29-OCT-2008
HP I64VMS LTT V4.5-1 Full LP Install (U) 16-OCT-2008
HP I64VMS CXX V7.2-18 Full LP Install (U) 26-SEP-2008
HP I64VMS C V7.3-18 Full LP Install Val 26-SEP-2008
HP I64VMS FORTRAN V8.1-2 Full LP Install (U) 26-SEP-2008
HP I64VMS VMS831H1I_SORT32 V1.0 Patch Install Val 25-SEP-2008
HP I64VMS VMS831H1I_IMGDMP V1.0 Patch Install Val 25-SEP-2008
HP I64VMS VMS831H1I_DEBUG V1.0 Patch Install Val 25-SEP-2008
HP I64VMS VMS831H1I_UPDATE V2.0 Patch Install Val 25-SEP-2008
HP I64VMS VMS831H1I_PCSI V1.0 Patch Install Val 25-SEP-2008
HP I64VMS VMS831H1I_IPB V2.0 Patch Install Val 25-SEP-2008
HP I64VMS VMS831H1I_UPDATE V1.0 Patch Install Val 25-SEP-2008
HP I64VMS MGAGPAT V3.4-2 Patch Install Val 26-JUN-2008
HP I64VMS DCPS_ECO3 V2.6 Patch Install (U) 26-JUN-2008
HP I64VMS VMS831H1I_ICAP V1.0 Patch Install Val 26-JUN-2008
HP I64VMS VMS831H1I_RAMDISK V1.0 Patch Install Val 26-JUN-2008
HP I64VMS VMS831H1I_AMACRO2K V1.0 Patch Install Val 26-JUN-2008
HP I64VMS VMS831H1I_ICXXL V1.0 Patch Install Val 26-JUN-2008
HP I64VMS VMS831H1I_FIBRE_SCSI V2.0 Patch Install Val 25-JUN-2008
HP I64VMS VMS831H1I_EFI V1.0 Patch Install Val 25-JUN-2008
HP I64VMS VMS831H1I_RMS V2.0 Patch Install Val 25-JUN-2008
HP I64VMS VMS831H1I_SYS V2.0 Patch Install Val 25-JUN-2008
HP I64VMS VMS831H1I_PCSI V1.0 Patch Install Val 25-JUN-2008
HP I64VMS VMS831H1I_UPDATE V1.0 Patch Install Val 25-JUN-2008
HP I64VMS RTR V5.1-423 Full LP Install Val 24-JUN-2008
HP I64VMS VMSI18N V8.3-1 Full LP Install Val 24-JUN-2008
HP VMS AVAIL_MAN_COL V3.0-2 Full LP Install Val 24-JUN-2008
HP I64VMS VT V2.1-K Full LP Install Val 24-JUN-2008
HP I64VMS FTAM V4.1-A Full LP Install Val 24-JUN-2008
HP I64VMS OSAK V3.0-V Full LP Install Val 24-JUN-2008
HP I64VMS MGMTAGENTS V3.4-1 Full LP Install Val 24-JUN-2008
HP I64VMS DCPS V2.6 Full LP Install Val 24-JUN-2008
HP I64VMS DCE V3.2 Full LP Install (U) 24-JUN-2008
HP I64VMS CSWS V2.1-1 Full LP Install Val 24-JUN-2008
HP I64VMS JAVA150 V1.5-3 Full LP Install Val 24-JUN-2008
HP I64VMS CSWB V1.7-13 Full LP Install Val 24-JUN-2008
HP I64VMS DECNET_PLUS V8.3-1H1 Full LP Install Val 11-OCT-2007
HP I64VMS AVAIL_MAN_BASE V8.3-1H1 Full LP Install (U) 11-OCT-2007
HP I64VMS CDSA V2.3-306 Full LP Install Val 11-OCT-2007
HP I64VMS DWMOTIF V1.6 Full LP Install Val 11-OCT-2007
HP I64VMS DWMOTIF_SUPPORT V8.3-1H1 Full LP Install (U) 11-OCT-2007
HP I64VMS KERBEROS V3.1-152 Full LP Install Val 11-OCT-2007
HP I64VMS OPENVMS V8.3-1H1 Platform Install Sys 11-OCT-2007
HP I64VMS SSL V1.3-284 Full LP Install Val 11-OCT-2007
HP I64VMS TCPIP V5.6-9ECO2 Full LP Install Val 11-OCT-2007
HP I64VMS TDC_RT V2.3-1 Full LP Install Val 11-OCT-2007
HP I64VMS VMS V8.3-1H1 Oper System Install Sys 11-OCT-2007
HP I64VMS WBEMCIM V2.61-A070728 Full LP Install Val 11-OCT-2007
HP I64VMS WBEMPROVIDERS V1.5-31 Full LP Install Val 11-OCT-2007
------------------------------------ ----------- ----------- ---
-----------
136 items found

Also have PMDF 6.5 and VAM 21.A installed via VMSINSTAL.


Printable version

Privacy statement Using this site means you accept its terms

© 2011 Hewlett-Packard Development Company, L.P.

Dave

unread,
Jan 13, 2011, 9:32:35 AM1/13/11
to

The problem was identified. DES/AES encryption stops working if the
JAVA$60_SETUP command file is executed. Specifically, when the
command

$ define/PROCESS/NOLOG DECC$EFS_CASE_PRESERVE ENABLE ! enable ODS-5
names

is executed.

Dave.

Jose Baars

unread,
Jan 14, 2011, 9:19:13 AM1/14/11
to
On Jan 13, 3:32 pm, Dave <Baxt...@tessco.com> wrote:
>
> The problem was identified.    DES/AES encryption stops working if the
> JAVA$60_SETUP command file is executed.    Specifically, when the
> command
>
> $ define/PROCESS/NOLOG DECC$EFS_CASE_PRESERVE ENABLE  ! enable ODS-5
> names
>
> is executed.
>
> Dave.

I am afraid of those DECC* logicals.

Good thing you found it, as I tried on a couple of
systems, and I couldn't reproduce it.

Steven Schweda

unread,
Jan 14, 2011, 10:58:47 AM1/14/11
to
Dave wrote:

> $ define/PROCESS/NOLOG DECC$EFS_CASE_PRESERVE ENABLE ! enable ODS-5

That's sad. I haven't been keeping my Java current, but
around here:

ALP $ dire java*_setup.com;

Directory SYS$COMMON:[SYSMGR]

JAVA$131_SETUP.COM;1 JAVA$142_CANCEL_SETUP.COM;2
JAVA$142_SETUP.COM;2 JAVA$150_CANCEL_SETUP.COM;1
JAVA$150_SETUP.COM;1

Total of 5 files.

and:

ALP $ search java*_setup.com decc$

******************************
SYS$COMMON:[SYSMGR]JAVA$131_SETUP.COM;1

$! define/nolog/job DECC$POSIX_SEEK_STREAM_FILE ENABLE ! limit
physically exten
ding a file
$! define/nolog DECC$ARGV_PARSE_STYLE ENABLE ! preserve argv case
$! define/nolog DECC$EFS_CASE_PRESERVE ENABLE ! enable ODS-5 names
ALP $

So I'd've thought that they'd solved that problem after the
"131" release, but apparently they haven't left it solved.


Jose Baars wrote:

> I am afraid of those DECC* logicals.

Which is why it's better to set them inside a program, and
not process-wide.

John Reagan

unread,
Jan 14, 2011, 11:18:38 AM1/14/11
to

"Steven Schweda" <sms.an...@gmail.com> wrote in message
news:5fab8d4d-fdae-4a9e...@a10g2000vby.googlegroups.com...

> Dave wrote:
>
>> I am afraid of those DECC* logicals.
>
> Which is why it's better to set them inside a program, and
> not process-wide.

Defining the logicals after the program is running rarely has an impact.
The CRTL queries these feature logicals at image activation time and uses
those cached values going forward. Plus some of the feature logicals impact
things like ARGV/ARGC processing which is already done by the time your
program gains control.

The solution is to use the APIs provided in the RTL to set the feature
settings (I forget the exact names now... something like
DECC$SET_FEATURE_LOGICAL or some such). And if you want to impact things
like the ARGV/ARGC processsing, you would have to call the API from a
LIB$INITIALIZE routine.

John


Bob Koehler

unread,
Jan 14, 2011, 11:47:16 AM1/14/11
to
In article <aoSdnSvYodz56q3Q...@earthlink.com>, "John Reagan" <johnr...@earthlink.net> writes:
>
> "Steven Schweda" <sms.an...@gmail.com> wrote in message
> news:5fab8d4d-fdae-4a9e...@a10g2000vby.googlegroups.com...
>> Dave wrote:
>>
>>> I am afraid of those DECC* logicals.
>>
>> Which is why it's better to set them inside a program, and
>> not process-wide.
>
> Defining the logicals after the program is running rarely has an impact.

define/user_mode would seem to be the appropirate solution:

1) done before image activation
2) doesn't affect anything done after the image

Steven Schweda

unread,
Jan 14, 2011, 2:44:38 PM1/14/11
to
John Reagan wrote:

> The solution is to use the APIs provided in the RTL to set the feature
> settings (I forget the exact names now... something like
> DECC$SET_FEATURE_LOGICAL or some such). And if you want to impact things
> like the ARGV/ARGC processsing, you would have to call the API from a
> LIB$INITIALIZE routine.

Which is exactly what I do in practically everything I put
onto VMS (bzip2, cdrtools, GNU diffutils, GnuPG, gzip, mtools,
VMSTAR, wget, Zip+UnZip, ...).

HELP CRTL Feature_Logical_Names
HELP CRTL decc$feature*

(Which is exactly what HP does _not_ do in programs like its
SSH client program, by the way.)

I'm still waiting for some expert to explain how to get
this stuff done for a C++ program where the C++ initialization
hijacks the whole LIB$INITIALIZE thing, however.


Bob Koehler wrote:

> define/user_mode would seem to be the appropirate solution:

Perhaps, _if_ you don't mind running a command procedure
instead of (or in addition to) the actual program of interest.

0 new messages