There are actually many solutions but I’ve just listed the line that gave me the most difficulty. For more solutions you can consult the Shredder Endgame Database on the right.
Highlight for one line:
1.Bd7 h2 2.Bc6+ Kg1 3.Bh1 Kh1 4.Kf2 Nf5 5.Kf1 draws because Black can’t force White to let his K out of the corner. It took some time before I realized the theme and that White could sac his B.