crypt_alg_s
static struct crypt_alg_s *getalgbyname(const char *algname, boolean_t *found);
static void free_crypt_alg(struct crypt_alg_s *alg);
struct crypt_alg_s *alg;
struct crypt_alg_s *alg = NULL;
static struct crypt_alg_s *
struct crypt_alg_s *alg = NULL;
if ((alg = malloc(sizeof (struct crypt_alg_s))) == NULL) {
free_crypt_alg(struct crypt_alg_s *alg)