diff options
| author | Rao Shoaib <Rao.Shoaib@Sun.COM> | 2009-11-11 08:45:41 -0800 |
|---|---|---|
| committer | Rao Shoaib <Rao.Shoaib@Sun.COM> | 2009-11-11 08:45:41 -0800 |
| commit | 9525b14bcdeb5b5f6f95ab27c2f48f18bd2ec829 (patch) | |
| tree | df51891a276edf456c1481f49653a76cdfedee53 /usr/src/lib/libresolv2/common/dnssafe/generate.c | |
| parent | 0324f02a004039d6377111191fdd7134452d7817 (diff) | |
| download | illumos-joyent-9525b14bcdeb5b5f6f95ab27c2f48f18bd2ec829.tar.gz | |
6289479 libresolv2 clean up and alignment with libbind.6.0
Diffstat (limited to 'usr/src/lib/libresolv2/common/dnssafe/generate.c')
| -rw-r--r-- | usr/src/lib/libresolv2/common/dnssafe/generate.c | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/usr/src/lib/libresolv2/common/dnssafe/generate.c b/usr/src/lib/libresolv2/common/dnssafe/generate.c deleted file mode 100644 index f892ad60e9..0000000000 --- a/usr/src/lib/libresolv2/common/dnssafe/generate.c +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (c) 1999 by Sun Microsystems, Inc. - * All rights reserved. - */ - -#pragma ident "%Z%%M% %I% %E% SMI" - -/* Copyright (C) RSA Data Security, Inc. created 1993, 1996. This is an - unpublished work protected as such under copyright law. This work - contains proprietary, confidential, and trade secret information of - RSA Data Security, Inc. Use, disclosure or reproduction without the - express written authorization of RSA Data Security, Inc. is - prohibited. - */ - -#include "port_before.h" -#include "global.h" -#include "bsafe2.h" -#include "bkey.h" -#include "balg.h" -#include "ainfotyp.h" -#include "keyobj.h" -#include "algobj.h" -#include "port_after.h" - -int B_GenerateInit (algorithmObject, algorithmChooser, surrenderContext) -B_ALGORITHM_OBJ algorithmObject; -B_ALGORITHM_CHOOSER algorithmChooser; -A_SURRENDER_CTX *surrenderContext; -{ - int status; - - if ((status = AlgorithmWrapCheck (THE_ALG_WRAP)) != 0) - return (status); - - return (B_AlgorithmGenerateInit - (&THE_ALG_WRAP->algorithm, algorithmChooser, surrenderContext)); -} - -int B_GenerateKeypair - (algorithmObject, publicKey, privateKey, randomAlgorithm, surrenderContext) -B_ALGORITHM_OBJ algorithmObject; -B_KEY_OBJ publicKey; -B_KEY_OBJ privateKey; -B_ALGORITHM_OBJ randomAlgorithm; -A_SURRENDER_CTX *surrenderContext; -{ - int status; - - if ((status = AlgorithmWrapCheck (THE_ALG_WRAP)) != 0) - return (status); - if ((status = KeyWrapCheck ((KeyWrap *)publicKey)) != 0) - return (status); - if ((status = KeyWrapCheck ((KeyWrap *)privateKey)) != 0) - return (status); - if ((status = RandomAlgorithmCheck (randomAlgorithm)) != 0) - return (status); - - return (B_AlgorithmGenerateKeypair - (&THE_ALG_WRAP->algorithm, &((KeyWrap *)publicKey)->key, - &((KeyWrap *)privateKey)->key, - &((AlgorithmWrap *)randomAlgorithm)->algorithm, surrenderContext)); -} - -int B_GenerateParameters - (algorithmObject, resultAlgorithmObject, randomAlgorithm, surrenderContext) -B_ALGORITHM_OBJ algorithmObject; -B_ALGORITHM_OBJ resultAlgorithmObject; -B_ALGORITHM_OBJ randomAlgorithm; -A_SURRENDER_CTX *surrenderContext; -{ - int status; - - if ((status = AlgorithmWrapCheck (THE_ALG_WRAP)) != 0) - return (status); - if ((status = AlgorithmWrapCheck ((AlgorithmWrap *)resultAlgorithmObject)) - != 0) - return (status); - if ((status = RandomAlgorithmCheck (randomAlgorithm)) != 0) - return (status); - - return (B_AlgorithmGenerateParameters - (&THE_ALG_WRAP->algorithm, - &((AlgorithmWrap *)resultAlgorithmObject)->algorithm, - &((AlgorithmWrap *)randomAlgorithm)->algorithm, surrenderContext)); -} - |
