Two APIs are available for CM applications to support encryption:
The cm1.c sample, located in $OPENSWITCH/sample on UNIX and in %OPENSWITCH%\sample on Windows, has been modified to use these APIs. Use the -E flag to specify that the user names and passwords are encrypted. You can use a shell script to invoke “cm1” using the encrypted user name/password combinations. For example:
#!/usr/bin/sh
./cm1 \
-U 0x010c7ec... \
-P 0x010c7ec... \
-u 0x102c06... \
-p 0x102dcd... \
-S OSWITCH1 -E
You need not follow this convention in your CM applications.
Sybase recommends that if you choose to enforce encryption of user
names and passwords, that you set the encryption argument to CS_TRUE
in
both cm_connect_enc and cm_ping_enc.
See Chapter 3, “Coordination Module Routines and Registered Procedures.”
The cm1.c sample allows you to use either encrypted or unencrypted values depending on the arguments you pass. See the OpenSwitch Administration Guide for more information about encryption support.