How to draw curves

This is regarding drawing curves with opengl. Suppose a curve is to be drawn passing through 3 points with the second point as the vertex. Using Bezier Splines means the curve does not pass through the control point. Is there any solution.