Merge pull request #466 from h2o/kazuho/unused-code-in-openssl-aead-init

[openssl backend] remove unnecessary check
diff --git a/lib/uecc.c b/lib/uecc.c
index 5d42b3b..111b8dc 100644
--- a/lib/uecc.c
+++ b/lib/uecc.c
@@ -87,6 +87,9 @@
         return PTLS_ERROR_NO_MEMORY;
     ctx->super = (ptls_key_exchange_context_t){algo, ptls_iovec_init(ctx->pub, sizeof(ctx->pub)), secp256r1_on_exchange};
     ctx->pub[0] = TYPE_UNCOMPRESSED_PUBLIC_KEY;
+
+    /* RNG function must be set before calling uECC_make_key() */
+    assert(uECC_get_rng() != NULL);
     uECC_make_key(ctx->pub + 1, ctx->priv, uECC_secp256r1());
 
     *_ctx = &ctx->super;