I am looking for a 5 parameter family of analytic functions $f:[0,1]\to R$ with given zeros at $0,p,1$ ($0<p<1$) such that 

(1) $f$ is convex in $[0,p]$ and concave in $[p,1]$.

(2) $p$ and arbitrary positive values of $-f'(0)$, $-f'(1)$, $f''(0)$, and $-f''(1)$ can be simultaneously prescribed.

A closed form solution in terms of rational operations and elementary functions is preferred.