Print this page
6621176 $SRC/cmd/cmd-crypto/cryptoadm/*.c seem to have syntax errors in the translation notes

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
          +++ new/usr/src/cmd/cmd-crypto/cryptoadm/adm_kef.c
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22      - * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
       22 + * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  27      -
  28   26  #include <fcntl.h>
  29   27  #include <stdio.h>
  30   28  #include <stdlib.h>
  31   29  #include <strings.h>
  32   30  #include <unistd.h>
  33   31  #include <locale.h>
  34   32  #include <libgen.h>
  35   33  #include <sys/types.h>
  36   34  #include <sys/stat.h>
  37   35  #include <sys/crypto/ioctladmin.h>
↓ open down ↓ 169 lines elided ↑ open up ↑
 207  205                  return (SUCCESS);
 208  206          } else {
 209  207                  if (check_active_for_hard(provname, &is_active) ==
 210  208                      FAILURE) {
 211  209                          return (FAILURE);
 212  210                  } else if (is_active == B_TRUE) {
 213  211                          (void) printf(gettext(
 214  212                              "%s: all mechanisms are enabled."), provname);
 215  213                          if (has_random)
 216  214                                  /*
 217      -                                 * TRANSLATION_NOTE:
      215 +                                 * TRANSLATION_NOTE
 218  216                                   * "random" is a keyword and not to be
 219  217                                   * translated.
 220  218                                   */
 221  219                                  (void) printf(gettext(" %s is enabled.\n"),
 222  220                                      "random");
 223  221                          else
 224  222                                  (void) printf("\n");
 225  223                          return (SUCCESS);
 226  224                  } else {
 227  225                          cryptoerror(LOG_STDERR,
↓ open down ↓ 152 lines elided ↑ open up ↑
 380  378          /*
 381  379           * Check if the kernel software provider is currently unloaded.
 382  380           * If it is unloaded, return FAILURE, because the disable subcommand
 383  381           * can not perform on inactive (unloaded) providers.
 384  382           */
 385  383          if (check_active_for_soft(provname, &is_active) == FAILURE) {
 386  384                  free_entry(pent);
 387  385                  return (FAILURE);
 388  386          } else if (is_active == B_FALSE) {
 389  387                  /*
 390      -                 * TRANSLATION_NOTE:
      388 +                 * TRANSLATION_NOTE
 391  389                   * "disable" is a keyword and not to be translated.
 392  390                   */
 393  391                  cryptoerror(LOG_STDERR,
 394  392                      gettext("can not do %1$s on an unloaded "
 395  393                      "kernel software provider -- %2$s."), "disable", provname);
 396  394                  free_entry(pent);
 397  395                  return (FAILURE);
 398  396          }
 399  397  
 400  398          /* Get the mechanism list for the software provider */
↓ open down ↓ 915 lines elided ↑ open up ↑
1316 1314                  free_entry(pent);
1317 1315                  free(punload_soft);
1318 1316                  (void) close(fd);
1319 1317                  return (FAILURE);
1320 1318          }
1321 1319  
1322 1320          if (punload_soft->sm_return_value != CRYPTO_SUCCESS) {
1323 1321                  cryptodebug("CRYPTO_UNLOAD_SOFT_MODULE ioctl return_value = "
1324 1322                      "%d", punload_soft->sm_return_value);
1325 1323                  /*
1326      -                 * If the return value is CRYPTO_UNKNOWN_PRIVDER, it means
     1324 +                 * If the return value is CRYPTO_UNKNOWN_PROVIDER, it means
1327 1325                   * that the provider is not registered yet.  Should just
1328 1326                   * continue.
1329 1327                   */
1330 1328                  if (punload_soft->sm_return_value != CRYPTO_UNKNOWN_PROVIDER) {
1331 1329                          free_entry(pent);
1332 1330                          free(punload_soft);
1333 1331                          (void) close(fd);
1334 1332                          return (FAILURE);
1335 1333                  }
1336 1334          }
↓ open down ↓ 126 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX