Print this page
6621176 $SRC/cmd/cmd-crypto/cryptoadm/*.c seem to have syntax errors in the translation notes
*** 17,32 ****
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
! * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <unistd.h>
--- 17,30 ----
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
! * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <unistd.h>
*** 212,222 ****
} else if (is_active == B_TRUE) {
(void) printf(gettext(
"%s: all mechanisms are enabled."), provname);
if (has_random)
/*
! * TRANSLATION_NOTE:
* "random" is a keyword and not to be
* translated.
*/
(void) printf(gettext(" %s is enabled.\n"),
"random");
--- 210,220 ----
} else if (is_active == B_TRUE) {
(void) printf(gettext(
"%s: all mechanisms are enabled."), provname);
if (has_random)
/*
! * TRANSLATION_NOTE
* "random" is a keyword and not to be
* translated.
*/
(void) printf(gettext(" %s is enabled.\n"),
"random");
*** 385,395 ****
if (check_active_for_soft(provname, &is_active) == FAILURE) {
free_entry(pent);
return (FAILURE);
} else if (is_active == B_FALSE) {
/*
! * TRANSLATION_NOTE:
* "disable" is a keyword and not to be translated.
*/
cryptoerror(LOG_STDERR,
gettext("can not do %1$s on an unloaded "
"kernel software provider -- %2$s."), "disable", provname);
--- 383,393 ----
if (check_active_for_soft(provname, &is_active) == FAILURE) {
free_entry(pent);
return (FAILURE);
} else if (is_active == B_FALSE) {
/*
! * TRANSLATION_NOTE
* "disable" is a keyword and not to be translated.
*/
cryptoerror(LOG_STDERR,
gettext("can not do %1$s on an unloaded "
"kernel software provider -- %2$s."), "disable", provname);
*** 1321,1331 ****
if (punload_soft->sm_return_value != CRYPTO_SUCCESS) {
cryptodebug("CRYPTO_UNLOAD_SOFT_MODULE ioctl return_value = "
"%d", punload_soft->sm_return_value);
/*
! * If the return value is CRYPTO_UNKNOWN_PRIVDER, it means
* that the provider is not registered yet. Should just
* continue.
*/
if (punload_soft->sm_return_value != CRYPTO_UNKNOWN_PROVIDER) {
free_entry(pent);
--- 1319,1329 ----
if (punload_soft->sm_return_value != CRYPTO_SUCCESS) {
cryptodebug("CRYPTO_UNLOAD_SOFT_MODULE ioctl return_value = "
"%d", punload_soft->sm_return_value);
/*
! * If the return value is CRYPTO_UNKNOWN_PROVIDER, it means
* that the provider is not registered yet. Should just
* continue.
*/
if (punload_soft->sm_return_value != CRYPTO_UNKNOWN_PROVIDER) {
free_entry(pent);